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, unread
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
openStream
public 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 XMLReader
document
- the document.java.lang.Exception
- any error.public java.lang.String xmlToString(Element element) throws java.lang.Exception
xmlToString
in interface XMLReader
element
- the element.java.lang.Exception
- any error.public java.lang.String xmlToFormattedString(Element element) throws java.lang.Exception
xmlToFormattedString
in interface XMLReader
element
- the root element.java.lang.Exception
- any error.public void xmlToFile(java.io.FileOutputStream outputStream, Document document) throws java.lang.Exception