public class XMLWriterImpl extends XMLWriterNano implements XMLWriter
Constructor and Description |
---|
XMLWriterImpl(java.io.OutputStream outStream)
Create a new instance of XMLWriter.
|
Modifier and Type | Method and Description |
---|---|
Element |
elementFromStream(java.io.FileInputStream inputStream)
Create an element representing the data in the input stream.
|
Element |
stringToElement(java.lang.String elemStr)
Convert the string representation back to an element.
|
void |
write(Element xml)
Writes an XML element.
|
void |
write(Element xml,
boolean prettyPrint)
Writes an XML element.
|
void |
write(Element xml,
boolean prettyPrint,
int indent)
Writes an XML element.
|
public XMLWriterImpl(java.io.OutputStream outStream)
outStream
- the output stream to write to.public Element stringToElement(java.lang.String elemStr) throws java.lang.Exception
stringToElement
in interface XMLWriter
elemStr
- the element as a string.java.lang.Exception
- any error.public Element elementFromStream(java.io.FileInputStream inputStream) throws java.lang.Exception
elementFromStream
in interface XMLWriter
inputStream
- the input stream in XML format.java.lang.Exception
- any error.public void write(Element xml) throws java.io.IOException
public void write(Element xml, boolean prettyPrint) throws java.io.IOException
public void write(Element xml, boolean prettyPrint, int indent) throws java.io.IOException