|
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--uk.co.westhawk.test.DOMWriter
This class prints a DOM (document object model) representation of a XML document.
| Field Summary | |
protected boolean |
canonical
Canonical output (or not). |
protected java.lang.String |
docHeader
The document header |
protected java.lang.String |
docType
The document type |
static java.lang.String |
PRINTWRITER_ENCODING
Default Encoding |
| Constructor Summary | |
DOMWriter(boolean can,
java.lang.String dH,
java.lang.String dT)
The constructor. |
|
| Method Summary | |
protected java.lang.String |
normalize(java.lang.String s)
Normalizes the given string. |
void |
print(org.w3c.dom.Node node)
Prints the specified node with all its subnodes to System.out. |
protected void |
print(org.w3c.dom.Node node,
int level,
java.io.PrintWriter out)
Prints the specified node, recursively. |
void |
print(org.w3c.dom.Node node,
java.io.PrintWriter w)
Prints the specified node with all its subnodes to a printwriter. |
protected org.w3c.dom.Attr[] |
sortAttributes(org.w3c.dom.NamedNodeMap attrs)
Returns a sorted list of attributes. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String PRINTWRITER_ENCODING
protected boolean canonical
protected java.lang.String docHeader
protected java.lang.String docType
| Constructor Detail |
public DOMWriter(boolean can,
java.lang.String dH,
java.lang.String dT)
can - Canonical of notdH - The document headerdT - The document type| Method Detail |
public void print(org.w3c.dom.Node node)
node - The node to be printed.
public void print(org.w3c.dom.Node node,
java.io.PrintWriter w)
node - The node to be printed.w - The writer to be printed to.
protected void print(org.w3c.dom.Node node,
int level,
java.io.PrintWriter out)
node - The node to be printed.w - The writer to be printed to.protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
attrs - The attributes.protected java.lang.String normalize(java.lang.String s)
s - The string.
|
SNMP Stack 4_12 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||