public class DOMEcho extends Object
| Modifier and Type | Class and Description |
|---|---|
private static class |
DOMEcho.MyErrorHandler |
| Modifier and Type | Field and Description |
|---|---|
private static String |
basicIndent
Indentation will be in multiples of basicIndent
|
private static int |
indent
Indent level
|
private static PrintWriter |
out
Output goes here
|
(package private) static String |
outputEncoding
All output will be use this encoding
|
| Constructor and Description |
|---|
DOMEcho(PrintWriter out) |
| Modifier and Type | Method and Description |
|---|---|
static void |
echo(Node n)
Recursive routine to print out DOM tree nodes
|
static void |
main(String[] args) |
private static void |
outputIndentation()
Indent to the current level in multiples of basicIndent
|
private static void |
printlnCommon(Node n)
Echo common attributes of a DOM2 Node and terminate output with an
EOL character.
|
private static void |
usage() |
static final String outputEncoding
private static PrintWriter out
private static int indent
private static final String basicIndent
DOMEcho(PrintWriter out)
private static void printlnCommon(Node n)
private static void outputIndentation()
public static void echo(Node n)
private static void usage()