org.enhydra.xml.dom
Class DOMStats
java.lang.Object
|
+--org.enhydra.xml.dom.DOMStats
- public class DOMStats
- extends 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. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SIMPLE_CLASS_NAMES
public static final int SIMPLE_CLASS_NAMES
- Option flag to print simple class names instead of fully qualified
names.
printStats
public static void printStats(String msg,
Node root,
int options,
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(String msg,
Node root,
int options,
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.
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.