|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.commons.ErrorObject
org.apache.empire.xml.XMLWriter
public class XMLWriter
This class prints out a XML-DOM-Tree to an output stream.
Constructor Summary | |
---|---|
XMLWriter(java.io.OutputStream outStream)
Constructor |
|
XMLWriter(java.io.OutputStream outStream,
java.lang.String charsetEncoding)
Creates a XML Writer object. |
|
XMLWriter(java.io.Writer writer,
java.lang.String charsetEncoding)
Creates a XML Writer object. |
Method Summary | |
---|---|
static void |
debug(org.w3c.dom.Document doc)
Prints out the DOM-Tree on System.out for debugging purposes. |
static void |
debugToFile(org.w3c.dom.Document doc,
java.lang.String filename)
Prints out the DOM-Tree to a file for debugging purposes. |
static java.lang.String |
normalize(java.lang.String s,
boolean canonical)
|
void |
print(org.w3c.dom.Document doc)
Prints the specified document. |
void |
print(org.w3c.dom.Document doc,
java.lang.String styleSheet)
Prints the specified document. |
int |
print(org.w3c.dom.Node node,
int level)
Prints the specified node recursively |
static void |
saveAsFile(org.w3c.dom.Document doc,
java.lang.String filename)
Prints out the DOM-Tree. |
static void |
setXmlWriterDebugPath(java.lang.String path)
|
Methods inherited from class org.apache.empire.commons.ErrorObject |
---|
clearError, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, isExceptionsEnabled, setExceptionsEnabled |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLWriter(java.io.Writer writer, java.lang.String charsetEncoding)
writer
- a writer to the output streamcharsetEncoding
- encoding type (i.e. utf-8)public XMLWriter(java.io.OutputStream outStream, java.lang.String charsetEncoding) throws java.io.UnsupportedEncodingException
outStream
- the output stream
java.io.UnsupportedEncodingException
public XMLWriter(java.io.OutputStream outStream)
outStream
- the output streamMethod Detail |
---|
public static void debug(org.w3c.dom.Document doc)
doc
- The XML-Document to printpublic static void debugToFile(org.w3c.dom.Document doc, java.lang.String filename)
doc
- The XML-Document to printfilename
- The name of the file to write the XML-Document topublic static void saveAsFile(org.w3c.dom.Document doc, java.lang.String filename)
doc
- The XML-Document to printfilename
- The name of the file to write the XML-Document topublic static void setXmlWriterDebugPath(java.lang.String path)
public int print(org.w3c.dom.Node node, int level)
node
- the current node to printlevel
- the nesting level used for indenting the output
public void print(org.w3c.dom.Document doc)
doc
- the XML-DOM-Document to printpublic void print(org.w3c.dom.Document doc, java.lang.String styleSheet)
doc
- the XML-DOM-Document to printstyleSheet
- the XML-DOM-Document to printpublic static java.lang.String normalize(java.lang.String s, boolean canonical)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |