org.exolab.castor.xml
Class DebugHandler
java.lang.Object
org.exolab.castor.xml.DebugHandler
- DocumentHandler
public class DebugHandler
extends java.lang.Object
implements DocumentHandler
A Simple SAX1 DocumentHandler that intercepts SAX events and prints them to
the console. This class is not used during normal Castor operation, but
exists so that during debugging one can replace a normal DocumentHandler with
this one (which will proxy to the correct DocumentHandler).
FIXME: As Castor moves internally to the SAX2 interface, this class should
also be updated for SAX2.
$Revision: 6784 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $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.
|
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.
|
DebugHandler
public DebugHandler(DocumentHandler handler)
Creates a new DebugHandler which forwards events to the given document
handler.
handler
- the DocumentHandler to forward events to
DebugHandler
public DebugHandler(DocumentHandler handler,
Writer out)
Creates a new DebugHandler which forwards events to the given document
handler.
handler
- the DocumentHandler to forward events toout
- the Writer to print debug information to
characters
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
Proxies the org.sax.xml.DocumentHandler#characters(char[], int, int)
request to the proxy that is provided, printing debugging information
before doing the proxy.
endDocument
public void endDocument()
throws org.xml.sax.SAXException
Proxies the org.sax.xml.DocumentHandler#endDocument()
request to the proxy that is provided, printing debugging information
before doing the proxy.
endElement
public void endElement(String name)
throws org.xml.sax.SAXException
Proxies the org.sax.xml.DocumentHandler#endElement(String)
request to the proxy that is provided, printing debugging information
before doing the proxy.
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
Proxies the
org.sax.xml.DocumentHandler#ignorableWhitespace(char[], int, int) request
to the proxy that is provided, printing debugging information before
doing the proxy.
processingInstruction
public void processingInstruction(String target,
String data)
throws org.xml.sax.SAXException
Proxies the
org.sax.xml.DocumentHandler#processingInstruction(String, String) request
to the proxy that is provided, printing debugging information before
doing the proxy.
setDocumentLocator
public 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.
startDocument
public void startDocument()
throws org.xml.sax.SAXException
Proxies the org.sax.xml.DocumentHandler#startDocument()
request to the proxy that is provided, printing debugging information
before doing the proxy.
startElement
public void startElement(String name,
AttributeList atts)
throws org.xml.sax.SAXException
Proxies the
org.sax.xml.DocumentHandler#startElement(String, AttributeList) request
to the proxy that is provided, printing debugging information before
doing the proxy.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com