Class DOMPrinter
java.lang.Object
cx.ath.matthew.io.DOMPrinter
Print a DOM tree to the given OutputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprintDOM(Document d, OutputStream os) Print the given document and all its children.static voidprintDOM(Document d, PrintStream p) Print the given document and all its children.static voidprintNode(Node n, OutputStream os) Print the given node and all its children.static voidprintNode(Node n, PrintStream p) Print the given node and all its children.
-
Constructor Details
-
DOMPrinter
public DOMPrinter()
-
-
Method Details
-
printNode
Print the given node and all its children.- Parameters:
n- The Node to print.os- The Stream to print to.
-
printNode
Print the given node and all its children.- Parameters:
n- The Node to print.p- The Stream to print to.
-
printDOM
Print the given document and all its children.- Parameters:
d- The Document to print.p- The Stream to print to.
-
printDOM
Print the given document and all its children.- Parameters:
d- The Document to print.os- The Stream to print to.
-