|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.Reader de.ispsoft.jaxme.generator.dtd.RootNodeReader
The RootNodeReader solves the problem that we can only parse XML documents and not a DTD. It does so by prepending the actual DTD with the lines
<!DOCTYPE myInvisibleRootNode [ <!ELEMENT myInvisibleRootNode ANY>and appending the lines
]> <myInvisibleRootNode/>In other words, it converts the DTD into a well formed XML document, which we may parse.
Field Summary |
Fields inherited from class java.io.Reader |
lock |
Constructor Summary | |
RootNodeReader(org.xml.sax.InputSource pSource)
Constructor for RootNodeReader. |
Method Summary | |
void |
close()
Closes the parent Reader. |
java.lang.String |
getRootNodeName()
Returns the name of the invisible root node. |
int |
read(char[] pBuffer,
int pOffset,
int pLen)
|
void |
setRootNodeName(java.lang.String pName)
Sets the name of the invisible root node. |
Methods inherited from class java.io.Reader |
mark, markSupported, read, read, ready, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RootNodeReader(org.xml.sax.InputSource pSource)
Method Detail |
public void setRootNodeName(java.lang.String pName)
Sets the name of the invisible root node.
public java.lang.String getRootNodeName()
Returns the name of the invisible root node.
public int read(char[] pBuffer, int pOffset, int pLen) throws java.io.IOException
java.io.IOException
Reader.read(char[], int, int)
public void close() throws java.io.IOException
Closes the parent Reader.
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |