|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dbxml.xml.dom.TextWriter
TextWriter takes a Document, DocumentFragment, or Element and streams it as text or HTML to an output source (or a String)
Constructor Summary | |
TextWriter(org.w3c.dom.Node node)
|
|
TextWriter(org.w3c.dom.Node node,
boolean produceHTML)
|
|
TextWriter(org.w3c.dom.Node node,
boolean produceHTML,
boolean prettyPrint)
|
|
TextWriter(org.w3c.dom.Node node,
boolean produceHTML,
boolean prettyPrint,
int indentSize)
|
Method Summary | |
boolean |
isPrettyPrint()
|
boolean |
isProduceHTML()
|
void |
setPrettyPrint(boolean prettyPrint)
|
void |
setProduceHTML(boolean produceHTML)
|
static java.lang.String |
toHTMLString(org.w3c.dom.Node node)
toHTMLString returns the node as a HTML String. |
static java.lang.String |
toPrettyHTMLString(org.w3c.dom.Node node)
toPrettyHTMLString returns the node as a Pretty HTML String. |
static java.lang.String |
toPrettyString(org.w3c.dom.Node node)
toPrettyString returns the node as a Pretty String. |
java.lang.String |
toString()
toString returns the node as a String. |
static java.lang.String |
toString(org.w3c.dom.Node node)
toString returns the node as a String. |
static void |
write(org.w3c.dom.Node node,
java.io.OutputStream output)
write writes the specified node to the OutputStream as text. |
static void |
write(org.w3c.dom.Node node,
java.io.Writer writer)
write writes the specified node to the writer as text. |
void |
write(java.io.OutputStream output)
write writes the node to the OutputStream as text. |
void |
write(java.io.Writer writer)
write writes the node to the writer as text. |
static void |
writeHTML(org.w3c.dom.Node node,
java.io.OutputStream output)
writeHTML writes the specified node to the OutputStream as HTML. |
static void |
writeHTML(org.w3c.dom.Node node,
java.io.Writer writer)
writeHTML writes the specified node to the writer as HTML. |
static void |
writePretty(org.w3c.dom.Node node,
java.io.OutputStream output)
writePretty writes the specified node to the OutputStream as pretty text. |
static void |
writePretty(org.w3c.dom.Node node,
java.io.Writer writer)
writePretty writes the specified node to the writer as pretty text. |
static void |
writePrettyHTML(org.w3c.dom.Node node,
java.io.OutputStream output)
writePrettyHTML writes the specified node to the OutputStream as pretty HTML. |
static void |
writePrettyHTML(org.w3c.dom.Node node,
java.io.Writer writer)
writePrettyHTML writes the specified node to the writer as pretty HTML. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TextWriter(org.w3c.dom.Node node, boolean produceHTML, boolean prettyPrint, int indentSize)
public TextWriter(org.w3c.dom.Node node, boolean produceHTML, boolean prettyPrint)
public TextWriter(org.w3c.dom.Node node, boolean produceHTML)
public TextWriter(org.w3c.dom.Node node)
Method Detail |
public boolean isProduceHTML()
public void setProduceHTML(boolean produceHTML)
public boolean isPrettyPrint()
public void setPrettyPrint(boolean prettyPrint)
public static void write(org.w3c.dom.Node node, java.io.Writer writer) throws java.io.IOException
node
- The Node to writewriter
- The Writer to write to
java.io.IOException
public static void writeHTML(org.w3c.dom.Node node, java.io.Writer writer) throws java.io.IOException
node
- The Node to writewriter
- The Writer to write to
java.io.IOException
public static void writePretty(org.w3c.dom.Node node, java.io.Writer writer) throws java.io.IOException
node
- The Node to writewriter
- The Writer to write to
java.io.IOException
public static void writePrettyHTML(org.w3c.dom.Node node, java.io.Writer writer) throws java.io.IOException
node
- The Node to writewriter
- The Writer to write to
java.io.IOException
public void write(java.io.Writer writer) throws java.io.IOException
writer
- The Writer to write to
java.io.IOException
public static void write(org.w3c.dom.Node node, java.io.OutputStream output) throws java.io.IOException
node
- The Node to writeoutput
- The OutputStream to write to
java.io.IOException
public static void writeHTML(org.w3c.dom.Node node, java.io.OutputStream output) throws java.io.IOException
node
- The Node to writeoutput
- The OutputStream to write to
java.io.IOException
public static void writePretty(org.w3c.dom.Node node, java.io.OutputStream output) throws java.io.IOException
node
- The Node to writeoutput
- The OutputStream to write to
java.io.IOException
public static void writePrettyHTML(org.w3c.dom.Node node, java.io.OutputStream output) throws java.io.IOException
node
- The Node to writeoutput
- The OutputStream to write to
java.io.IOException
public void write(java.io.OutputStream output) throws java.io.IOException
output
- The OutputStream to write to
java.io.IOException
public static java.lang.String toString(org.w3c.dom.Node node)
node
- The Node to convert
public static java.lang.String toHTMLString(org.w3c.dom.Node node)
node
- The Node to convert
public static java.lang.String toPrettyString(org.w3c.dom.Node node)
node
- The Node to convert
public static java.lang.String toPrettyHTMLString(org.w3c.dom.Node node)
node
- The Node to convert
public java.lang.String toString()
|
dbXML API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |