|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.xml.Xml2HtmlWriter
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
| 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 |
public Xml2HtmlWriter(org.w3c.dom.Node node)
throws org.w3c.dom.DOMException
| 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
IOExceptionpublic String toString()
public static void write(org.w3c.dom.Node node,
Writer writer)
throws IOException
node - The Node to write.writer - The Writer to write to.
IOException
public static void write(org.w3c.dom.Node node,
OutputStream output)
throws IOException
node - The Node to write.output - The OutputStream to write to.
IOExceptionpublic 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 | |||||||||