public class XMLReaderImpl extends net.n3.nanoxml.StdXMLReader implements XMLReader
| Constructor and Description |
|---|
XMLReaderImpl(java.io.InputStream inStream)
Create a new instance of XMLReaderImpl.
|
XMLReaderImpl(java.io.Reader inStream)
Create a new instance of XMLReaderImpl.
|
XMLReaderImpl(java.lang.String publicID,
java.lang.String systemID)
Create a new instance of XMLReaderImpl.
|
| Modifier and Type | Method and Description |
|---|---|
void |
xmlToFile(java.io.FileOutputStream outputStream,
Document document)
Convert an XML document into its String equivalent and write to the file.
|
java.lang.String |
xmlToFormattedString(Element element)
Convert an XML document into a formatted String equivalent.
|
java.lang.String |
xmlToString(Document document)
Convert an XML document into its String equivalent.
|
java.lang.String |
xmlToString(Element element)
Convert an XML element into its String equivalent.
|
atEOF, atEOFOfCurrentStream, fileReader, finalize, getEncoding, getLineNr, getPublicID, getStreamLevel, getSystemID, openStream, read, setPublicID, setSystemID, startNewStream, startNewStream, stream2reader, stringReader, unreadclone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenStreampublic XMLReaderImpl(java.io.InputStream inStream)
throws java.lang.Exception
inStream - the input stream to create the reader from.java.lang.Exception - any error.public XMLReaderImpl(java.io.Reader inStream)
inStream - the input stream to create the reader from.public XMLReaderImpl(java.lang.String publicID,
java.lang.String systemID)
throws java.lang.Exception
publicID - the public ID which can be null.systemID - the system ID which cannot be null.java.lang.Exception - any error.public java.lang.String xmlToString(Document document) throws java.lang.Exception
xmlToString in interface XMLReaderdocument - the document.java.lang.Exception - any error.public java.lang.String xmlToString(Element element) throws java.lang.Exception
xmlToString in interface XMLReaderelement - the element.java.lang.Exception - any error.public java.lang.String xmlToFormattedString(Element element) throws java.lang.Exception
xmlToFormattedString in interface XMLReaderelement - the root element.java.lang.Exception - any error.public void xmlToFile(java.io.FileOutputStream outputStream,
Document document)
throws java.lang.Exception