Package cx.ath.matthew.io
Class DOMPrinter
- java.lang.Object
-
- cx.ath.matthew.io.DOMPrinter
-
public class DOMPrinter extends java.lang.Object
Print a DOM tree to the given OutputStream
-
-
Constructor Summary
Constructors Constructor Description DOMPrinter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
printDOM(org.w3c.dom.Document d, java.io.OutputStream os)
Print the given document and all its children.static void
printDOM(org.w3c.dom.Document d, java.io.PrintStream p)
Print the given document and all its children.static void
printNode(org.w3c.dom.Node n, java.io.OutputStream os)
Print the given node and all its children.static void
printNode(org.w3c.dom.Node n, java.io.PrintStream p)
Print the given node and all its children.
-
-
-
Method Detail
-
printNode
public static void printNode(org.w3c.dom.Node n, java.io.OutputStream os)
Print the given node and all its children.- Parameters:
n
- The Node to print.os
- The Stream to print to.
-
printNode
public static void printNode(org.w3c.dom.Node n, java.io.PrintStream p)
Print the given node and all its children.- Parameters:
n
- The Node to print.p
- The Stream to print to.
-
printDOM
public static void printDOM(org.w3c.dom.Document d, java.io.PrintStream p)
Print the given document and all its children.- Parameters:
d
- The Document to print.p
- The Stream to print to.
-
printDOM
public static void printDOM(org.w3c.dom.Document d, java.io.OutputStream os)
Print the given document and all its children.- Parameters:
d
- The Document to print.os
- The Stream to print to.
-
-