public class XPNWriter
extends java.lang.Object
Constructor and Description |
---|
XPNWriter(java.io.OutputStream os)
Creates a new XPNReader for the given URILocation.
|
Modifier and Type | Method and Description |
---|---|
void |
setEncoding(java.lang.String encoding)
Sets the character encoding to use
|
void |
setIndentation(boolean indent)
Sets a flag which controls writer specific indentation
|
void |
write(XPathNode node)
Writes an XML document representation from the given XPathNode
|
public XPNWriter(java.io.OutputStream os) throws java.io.IOException
location
- the URILocation to create this reader for.java.io.IOException
public void setEncoding(java.lang.String encoding)
encoding
- the character encoding to usepublic void setIndentation(boolean indent)
indent
- a flag that when true indicates that the writer
should "indent" where possible the start and end tags to
make the XML easier to read for human consumption.public void write(XPathNode node) throws java.io.IOException
node
- the XPathNode to writejava.io.IOException