public interface 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.
|
Element stringToElement(java.lang.String elemStr) throws java.lang.Exception
elemStr
- the element as a string.java.lang.Exception
- any error.Element elementFromStream(java.io.FileInputStream inputStream) throws java.lang.Exception
inputStream
- the input stream in XML format.java.lang.Exception
- any error.void write(Element xml) throws java.io.IOException
xml
- the non-null XML element to write.java.io.IOException
void write(Element xml, boolean prettyPrint) throws java.io.IOException
xml
- the non-null XML element to write.prettyPrint
- if spaces need to be inserted to make the output more
readablejava.io.IOException
void write(Element xml, boolean prettyPrint, int indent) throws java.io.IOException
xml
- the non-null XML element to write.prettyPrint
- if spaces need to be inserted to make the output more
readableindent
- how many spaces to indent the element.java.io.IOException