|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xindice.xml.TextWriter
TextWriter takes a Document, DocumentFragment, or Element and
streams it as text into an OutputStream
, Writer
,
or a String
.
UTF-8 output encoding is assumed.
Constructor Summary | |
TextWriter(org.w3c.dom.Node node)
|
Method Summary | |
String |
toString()
toString returns the node as a String. |
static String |
toString(org.w3c.dom.Node node)
toString returns the node as a String. |
static void |
write(org.w3c.dom.Node node,
OutputStream output)
write writes the specified node to the OutputStream as text. |
static void |
write(org.w3c.dom.Node node,
Writer writer)
write writes the specified node to the writer as text. |
void |
write(OutputStream output)
write writes the node to the OutputStream as text. |
void |
write(Writer writer)
write writes the node to the writer as text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TextWriter(org.w3c.dom.Node node)
Method Detail |
public void write(Writer writer) throws IOException
writer
- The Writer to write to
IOException
public void write(OutputStream output) throws IOException
output
- The OutputStream to write to
IOException
public String toString()
public static void write(org.w3c.dom.Node node, Writer writer) throws IOException
node
- The Node to writewriter
- The Writer to write to
IOException
public static void write(org.w3c.dom.Node node, OutputStream output) throws IOException
node
- The Node to writeoutput
- The OutputStream to write to
IOException
public static String toString(org.w3c.dom.Node node)
node
- The Node to convert
|
Xindice API version 1.2m1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |