|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mindoo.remote.api.tools.xml.DOMPrinter
public class DOMPrinter
Class offering methods to pring XML from DOM-nodes.
Internal utility class. Not part of the public API.
Constructor Summary | |
---|---|
DOMPrinter()
|
Method Summary | |
---|---|
static java.lang.String |
formatDOMNodeAsXML(org.w3c.dom.Node node)
Standard way to format a node as XML into a String. |
static java.lang.String |
formatDOMNodeAsXML(org.w3c.dom.Node node,
java.lang.String encoding,
boolean omitdeclaration)
Formats the given node as XML into a String. |
static void |
printDOMNodeAsXML(org.w3c.dom.Node node,
java.io.OutputStream result,
boolean omitdeclaration)
Prints the given node as XML to the given stream with UTF-8 encoding. |
static void |
printDOMNodeAsXML(org.w3c.dom.Node node,
java.io.OutputStream result,
java.lang.String encoding,
boolean omitdeclaration)
Prints the given node as XML to the given stream, applying the given encoding. |
static void |
printDOMNodeAsXML(org.w3c.dom.Node node,
java.io.Writer result,
boolean omitdeclaration)
Prints the given node as XML to a given writer. |
static void |
printDOMNodeAsXML(org.w3c.dom.Node node,
java.io.Writer result,
java.lang.String encoding,
boolean omitdeclaration)
Prints the given node as XML to a given writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMPrinter()
Method Detail |
---|
public static void printDOMNodeAsXML(org.w3c.dom.Node node, java.io.OutputStream result, boolean omitdeclaration) throws javax.xml.transform.TransformerException
node
- the noderesult
- receiving the resultomitdeclaration
- indicates of the declaration should be ommitted
javax.xml.transform.TransformerException
- thrown if an error occurespublic static void printDOMNodeAsXML(org.w3c.dom.Node node, java.io.OutputStream result, java.lang.String encoding, boolean omitdeclaration) throws javax.xml.transform.TransformerException
node
- the noderesult
- receiving the resultencoding
- encoding (std. UTF-8)omitdeclaration
- indicates of the declaration should be ommitted
javax.xml.transform.TransformerException
- thrown if an error occurespublic static void printDOMNodeAsXML(org.w3c.dom.Node node, java.io.Writer result, boolean omitdeclaration) throws javax.xml.transform.TransformerException
node
- the noderesult
- receiving the resultomitdeclaration
- indicates of the declaration should be ommitted
javax.xml.transform.TransformerException
- thrown if an error occurespublic static void printDOMNodeAsXML(org.w3c.dom.Node node, java.io.Writer result, java.lang.String encoding, boolean omitdeclaration) throws javax.xml.transform.TransformerException
node
- the noderesult
- receiving the resultencoding
- encoding (std. UTF-8)omitdeclaration
- indicates of the declaration should be ommitted
javax.xml.transform.TransformerException
- thrown if an error occurespublic static java.lang.String formatDOMNodeAsXML(org.w3c.dom.Node node, java.lang.String encoding, boolean omitdeclaration) throws javax.xml.transform.TransformerException
node
- the nodeencoding
- encoding (std. UTF-8)omitdeclaration
- indicates of the declaration should be ommitted
javax.xml.transform.TransformerException
- thrown if an error occurespublic static java.lang.String formatDOMNodeAsXML(org.w3c.dom.Node node) throws javax.xml.transform.TransformerException
node
- the node
javax.xml.transform.TransformerException
- thrown if an error occures
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |