Package org.exolab.adaptx.xslt.dom
Class XPNWriter
- java.lang.Object
-
- org.exolab.adaptx.xslt.dom.XPNWriter
-
public class XPNWriter extends java.lang.Object
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.- Version:
- $Revision: 3742 $ $Date: 2003-05-13 10:04:42 +0200 (Tue, 13 May 2003) $
- Author:
- Keith Visco
-
-
Constructor Summary
Constructors Constructor Description XPNWriter(java.io.OutputStream os)
Creates a new XPNReader for the given URILocation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setEncoding(java.lang.String encoding)
Sets the character encoding to usevoid
setIndentation(boolean indent)
Sets a flag which controls writer specific indentationvoid
write(XPathNode node)
Writes an XML document representation from the given XPathNode
-
-
-
Method Detail
-
setEncoding
public void setEncoding(java.lang.String encoding)
Sets the character encoding to use- Parameters:
encoding
- the character encoding to use
-
setIndentation
public void setIndentation(boolean indent)
Sets a flag which controls writer specific indentation- Parameters:
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.
-
write
public void write(XPathNode node) throws java.io.IOException
Writes an XML document representation from the given XPathNode- Parameters:
node
- the XPathNode to write- Throws:
java.io.IOException
-
-