org.xml.sax.DocumentHandlerpublic class DebugHandler
extends java.lang.Object
implements org.xml.sax.DocumentHandler
FIXME: As Castor moves internally to the SAX2 interface, this class should also be updated for SAX2.
| Constructor | Description | 
|---|---|
DebugHandler(org.xml.sax.DocumentHandler handler) | 
 Creates a new DebugHandler which forwards events to the given document
 handler. 
 | 
DebugHandler(org.xml.sax.DocumentHandler handler,
            java.io.Writer out) | 
 Creates a new DebugHandler which forwards events to the given document
 handler. 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
void | 
characters(char[] ch,
          int start,
          int length) | 
 
 Proxies the org.sax.xml.DocumentHandler#characters(char[], int, int)
 request to the proxy that is provided, printing debugging information
 before doing the proxy. 
 | 
void | 
endDocument() | 
  Proxies the org.sax.xml.DocumentHandler#endDocument()
 request to the proxy that is provided, printing debugging information
 before doing the proxy. 
 | 
void | 
endElement(java.lang.String name) | 
  Proxies the org.sax.xml.DocumentHandler#endElement(String)
 request to the proxy that is provided, printing debugging information
 before doing the proxy. 
 | 
void | 
ignorableWhitespace(char[] ch,
                   int start,
                   int length) | 
  Proxies the
 org.sax.xml.DocumentHandler#ignorableWhitespace(char[], int, int) request
 to the proxy that is provided, printing debugging information before
 doing the proxy. 
 | 
void | 
processingInstruction(java.lang.String target,
                     java.lang.String data) | 
  Proxies the
 org.sax.xml.DocumentHandler#processingInstruction(String, String) request
 to the proxy that is provided, printing debugging information before
 doing the proxy. 
 | 
void | 
setDocumentLocator(org.xml.sax.Locator locator) | 
  Proxies the
 org.sax.xml.DocumentHandler#setDocumentLocator(Locator) request to the
 proxy that is provided, printing debugging information before doing the
 proxy. 
 | 
void | 
startDocument() | 
  Proxies the org.sax.xml.DocumentHandler#startDocument()
 request to the proxy that is provided, printing debugging information
 before doing the proxy. 
 | 
void | 
startElement(java.lang.String name,
            org.xml.sax.AttributeList atts) | 
  Proxies the
 org.sax.xml.DocumentHandler#startElement(String, AttributeList) request
 to the proxy that is provided, printing debugging information before
 doing the proxy. 
 | 
public DebugHandler(org.xml.sax.DocumentHandler handler)
handler - the DocumentHandler to forward events topublic DebugHandler(org.xml.sax.DocumentHandler handler,
                    java.io.Writer out)
handler - the DocumentHandler to forward events toout - the Writer to print debug information topublic void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
characters in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void endDocument()
                 throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void endElement(java.lang.String name)
                throws org.xml.sax.SAXException
endElement in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
                         throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void processingInstruction(java.lang.String target,
                                  java.lang.String data)
                           throws org.xml.sax.SAXException
processingInstruction in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator in interface org.xml.sax.DocumentHandlerpublic void startDocument()
                   throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionpublic void startElement(java.lang.String name,
                         org.xml.sax.AttributeList atts)
                  throws org.xml.sax.SAXException
startElement in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXExceptionIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com