com.anet.api.util
Class XmlTreeUtil
java.lang.Object
com.anet.api.util.XmlTreeUtil
public class XmlTreeUtil
- extends java.lang.Object
XML Tree Utility
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tabSpace
private java.lang.String tabSpace
lineSpace
private java.lang.String lineSpace
printDocumentNode
private boolean printDocumentNode
XmlTreeUtil
public XmlTreeUtil()
- Constructor
setPrintDocumentNode
public void setPrintDocumentNode(boolean setNode)
- Parameters:
setNode
-
setCollapsed
public void setCollapsed()
printTree
public java.lang.String printTree(org.w3c.dom.Document XMLDocument)
- Parameters:
XMLDocument
-
- Returns:
- Returns the tree
printTreeBytes
public byte[] printTreeBytes(org.w3c.dom.Document XMLDocument)
- Parameters:
XMLDocument
-
- Returns:
- Returns a byte array
printTree
public void printTree(org.w3c.dom.Document XMLDocument,
java.io.OutputStream os)
- Parameters:
XMLDocument
- os
-
_printTree
private void _printTree(org.w3c.dom.Node node,
java.io.OutputStream os,
int nodeLevel)
throws java.io.IOException
- Parameters:
node
- os
- nodeLevel
-
- Throws:
java.io.IOException
Copyright © 2011 DS Data Systems UK Ltd.