public class DebugHandler extends Object implements DocumentHandler
FIXME: As Castor moves internally to the SAX2 interface, this class should also be updated for SAX2.
| Constructor and Description |
|---|
DebugHandler(DocumentHandler handler)
Creates a new DebugHandler which forwards events to the given document handler.
|
DebugHandler(DocumentHandler handler,
Writer out)
Creates a new DebugHandler which forwards events to the given document handler.
|
| Modifier and Type | Method and 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(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(String target,
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(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(String name,
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(DocumentHandler handler)
handler - the DocumentHandler to forward events topublic DebugHandler(DocumentHandler handler, 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 SAXException
characters in interface DocumentHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface DocumentHandlerSAXExceptionpublic void endElement(String name) throws SAXException
endElement in interface DocumentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface DocumentHandlerSAXExceptionpublic void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface DocumentHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface DocumentHandlerpublic void startDocument()
throws SAXException
startDocument in interface DocumentHandlerSAXExceptionpublic void startElement(String name, AttributeList atts) throws SAXException
startElement in interface DocumentHandlerSAXExceptionCopyright © 2016. All rights reserved.