Xindice API
version 1.2m1

org.apache.xindice.xml
Class Xml2HtmlWriter

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

public class Xml2HtmlWriter
extends Object

Xml2HtmlWriter takes a Document, DocumentFragment, or Element and streams it as html to an output source (or a String).

a css stylesheet should define these classes: xml-misc, xml-element-name, xml-attribute-name, xml-attribute-content, xml-element-content, xml-comment, xml-processing, xml-cdata

Version:
$Id: Xml2HtmlWriter.java 541508 2007-05-25 01:54:12Z vgritsenko $
Author:
Jan Metzner

Constructor Summary
Xml2HtmlWriter(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

Xml2HtmlWriter

public Xml2HtmlWriter(org.w3c.dom.Node node)
               throws org.w3c.dom.DOMException
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.