Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.webdav.lib.util
Class XMLDebugOutputer  view XMLDebugOutputer download XMLDebugOutputer.java

java.lang.Object
  extended byorg.apache.webdav.lib.util.XMLDebugOutputer

public class XMLDebugOutputer
extends java.lang.Object

XMLDebugOutputer helper class.


Field Summary
private  javax.xml.parsers.DocumentBuilder db
           
private  javax.xml.parsers.DocumentBuilderFactory dbf
           
private  boolean debug
           
private static java.lang.String INDENT
           
private  int tabWidth
           
 
Constructor Summary
XMLDebugOutputer()
          Constructor
 
Method Summary
private  void dispatchNode(org.w3c.dom.Node node, int level)
           
private  void indentBlock(java.lang.String block, int level)
           
 void print(org.w3c.dom.Document doc)
          Print the given document to debug output.
 void print(java.lang.String xmlString)
          Print the given XML string to debug output.
private  void printCDATANode(org.w3c.dom.Node node, int level)
           
private  void printCommentNode(org.w3c.dom.Node node, int level)
           
private  void printElementNode(org.w3c.dom.Node node, int level)
           
private  void printTextNode(org.w3c.dom.Node node, int level)
           
 void setDebug(boolean debug)
          Set debug information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDENT

private static final java.lang.String INDENT
See Also:
Constant Field Values

tabWidth

private int tabWidth

debug

private boolean debug

dbf

private javax.xml.parsers.DocumentBuilderFactory dbf

db

private javax.xml.parsers.DocumentBuilder db
Constructor Detail

XMLDebugOutputer

public XMLDebugOutputer()
Constructor

Method Detail

print

public void print(org.w3c.dom.Document doc)
Print the given document to debug output. If debug is set to true;


print

public void print(java.lang.String xmlString)
Print the given XML string to debug output. If debug is set to true;


setDebug

public void setDebug(boolean debug)
Set debug information.


dispatchNode

private void dispatchNode(org.w3c.dom.Node node,
                          int level)

printCDATANode

private void printCDATANode(org.w3c.dom.Node node,
                            int level)

printTextNode

private void printTextNode(org.w3c.dom.Node node,
                           int level)

printCommentNode

private void printCommentNode(org.w3c.dom.Node node,
                              int level)

printElementNode

private void printElementNode(org.w3c.dom.Node node,
                              int level)

indentBlock

private void indentBlock(java.lang.String block,
                         int level)