public class XmlTreeUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
lineSpace |
private boolean |
printDocumentNode |
private java.lang.String |
tabSpace |
Constructor and Description |
---|
XmlTreeUtil()
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
_printTree(org.w3c.dom.Node node,
java.io.OutputStream os,
int nodeLevel) |
java.lang.String |
printTree(org.w3c.dom.Document XMLDocument) |
void |
printTree(org.w3c.dom.Document XMLDocument,
java.io.OutputStream os) |
byte[] |
printTreeBytes(org.w3c.dom.Document XMLDocument) |
void |
setCollapsed() |
void |
setPrintDocumentNode(boolean setNode) |
private java.lang.String tabSpace
private java.lang.String lineSpace
private boolean printDocumentNode
public void setPrintDocumentNode(boolean setNode)
setNode
- the setNodepublic void setCollapsed()
public java.lang.String printTree(org.w3c.dom.Document XMLDocument)
XMLDocument
- the XMLDocumentpublic byte[] printTreeBytes(org.w3c.dom.Document XMLDocument)
XMLDocument
- the XMLDocumentpublic void printTree(org.w3c.dom.Document XMLDocument, java.io.OutputStream os)
XMLDocument
- the XMLDocumentos
- the osprivate void _printTree(org.w3c.dom.Node node, java.io.OutputStream os, int nodeLevel) throws java.io.IOException
node
- the nodeos
- the osnodeLevel
- the nodeLeveljava.io.IOException
- an unexpected IOException exceptionCopyright © 2011 DS Data Systems UK Ltd.