Xindice API
version 1.2m1

org.apache.xindice.xml
Class TextWriter

java.lang.Object
  extended byorg.apache.xindice.xml.TextWriter

public final class TextWriter
extends Object

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.

Version:
$Revision: 541508 $, $Date: 2007-05-24 21:54:12 -0400 (Thu, 24 May 2007) $

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

TextWriter

public TextWriter(org.w3c.dom.Node node)
Method Detail

write

public void write(Writer writer)
           throws IOException
write writes the node to the writer as text.

Parameters:
writer - The Writer to write to
Throws:
IOException

write

public void write(OutputStream output)
           throws IOException
write writes the node to the OutputStream as text.

Parameters:
output - The OutputStream to write to
Throws:
IOException

toString

public String toString()
toString returns the node as a String.

Returns:
The String value

write

public static void write(org.w3c.dom.Node node,
                         Writer writer)
                  throws IOException
write writes the specified node to the writer as text.

Parameters:
node - The Node to write
writer - The Writer to write to
Throws:
IOException

write

public static void write(org.w3c.dom.Node node,
                         OutputStream output)
                  throws IOException
write writes the specified node to the OutputStream as text.

Parameters:
node - The Node to write
output - The OutputStream to write to
Throws:
IOException

toString

public static String toString(org.w3c.dom.Node node)
toString returns the node as a String.

Parameters:
node - The Node to convert
Returns:
The String value

Xindice API
version 1.2m1

Copyright (c) 1999-2007 The Apache Software Foundation. All Rights Reserved.