|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--java.io.FilterInputStream | +--fdda.plugins.xmlreader.DOCTYPEChangerStream
This class adds a DOCTYPE to an incoming XML document or replaces its existing DOCTYPE declaration if it has one.
Field Summary | |
protected boolean |
cycle
|
protected boolean |
docStarted
|
protected boolean |
generating
|
protected boolean |
internalSubset
|
protected String |
internalSubsetContent
|
protected StringBuffer |
myBuffer
|
protected String |
publicIdentifier
|
protected boolean |
replace
|
protected String |
rootElement
|
protected String |
systemIdentifier
|
Fields inherited from class java.io.FilterInputStream |
in |
Constructor Summary | |
DOCTYPEChangerStream(InputStream in)
|
Method Summary | |
protected void |
addDocType()
|
protected int |
feedFromInternalBuffer()
|
String |
getInternalSubset()
Returns the internal subset. |
String |
getPublicIdentifier()
Returns the public identifier. |
String |
getRootElement()
Returns the root element. |
String |
getSystemIdentifier()
Returns the system identifier. |
static void |
main(String[] args)
This class defines a main() method to test the DOCTYPEChanger |
int |
read()
|
int |
read(byte[] text,
int offset,
int length)
|
void |
setInternalSubset(String subsetContents)
Use this method to set the internal subset identified by the DOCTYPE declaration. |
void |
setPublicIdentifier(String identifier)
Use setPublicIdentifier to set the public identifer identified by the DOCTYPE declaration. |
void |
setReplace(boolean replaceChoice)
Use setReplace to indicate whether to replace the DOCTYPE declarations for documents that already have one. |
void |
setRootElement(String elementName)
Use setRootElement to set the root element identified by the DOCTYPE declaration. |
void |
setSystemIdentifier(String identifier)
Use setSystemIdentifier to set the public identifer identified by the DOCTYPE declaration. |
Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean replace
protected String rootElement
protected String publicIdentifier
protected String systemIdentifier
protected String internalSubsetContent
protected boolean docStarted
protected boolean generating
protected boolean cycle
protected boolean internalSubset
protected StringBuffer myBuffer
Constructor Detail |
public DOCTYPEChangerStream(InputStream in)
Method Detail |
public void setReplace(boolean replaceChoice)
public void setRootElement(String elementName)
public void setPublicIdentifier(String identifier)
public void setSystemIdentifier(String identifier)
public void setInternalSubset(String subsetContents)
public String getRootElement()
public String getPublicIdentifier()
public String getSystemIdentifier()
public String getInternalSubset()
protected void addDocType()
protected int feedFromInternalBuffer()
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] text, int offset, int length) throws IOException
read
in class FilterInputStream
IOException
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |