Enhydra 5.1 API

org.enhydra.xml.dom
Class DOMStats

java.lang.Object
  |
  +--org.enhydra.xml.dom.DOMStats

public class DOMStats
extends java.lang.Object

Collect and print statistics on a DOM.


Field Summary
static int SIMPLE_CLASS_NAMES
          Option flag to print simple class names instead of fully qualified names.
 
Method Summary
static void printStats(java.lang.String msg, Node root, int options, java.io.OutputStream out)
          Collect and print statistics about a DOM tree or subtree.
static void printStats(java.lang.String msg, Node root, int options, java.io.PrintWriter out)
          Collect and print statistics about a DOM tree or subtree.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIMPLE_CLASS_NAMES

public static final int SIMPLE_CLASS_NAMES
Option flag to print simple class names instead of fully qualified names.

See Also:
Constant Field Values
Method Detail

printStats

public static void printStats(java.lang.String msg,
                              Node root,
                              int options,
                              java.io.PrintWriter out)
Collect and print statistics about a DOM tree or subtree.

Parameters:
msg - A message to print at the start. If null or empty, don't print a message.
root - Top of the tree.
options - Option flags controlling printing.
out - Output writer. If null, stderr will be used.

printStats

public static void printStats(java.lang.String msg,
                              Node root,
                              int options,
                              java.io.OutputStream out)
Collect and print statistics about a DOM tree or subtree.

Parameters:
msg - A message to print at the start. If null or empty, don't print a message.
root - Top of the tree.
options - Option flags controlling printing.
out - Output writer. If null, stderr will be used.

Enhydra 5.1 API