|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.adaptx.xslt.dom.XPNWriter
public class XPNWriter
A basic utility class to write an XPathNode, using the org.exolab.adaptx.xslt.dom package as the implementation of XPathNode. Actually it should work for any XPathNode implementation, but it's only been tested with the above listed package.
Constructor Summary | |
---|---|
XPNWriter(java.io.OutputStream os)
Creates a new XPNReader for the given URILocation. |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XPNWriter(java.io.OutputStream os) throws java.io.IOException
location
- the URILocation to create this reader for.
java.io.IOException
Method Detail |
---|
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 write
java.io.IOException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |