|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.castor.xml.DebugHandler
A Simple DocumentHandler that intercepts SAX events and prints them to the console
| Field Summary | |
|---|---|
(package private) org.xml.sax.DocumentHandler |
_handler
The DocumentHandler to forward events to |
(package private) java.io.Writer |
_out
The writer to report events to |
(package private) boolean |
newLine
|
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(java.lang.String name)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
processingInstruction(java.lang.String target,
java.lang.String data)
|
void |
setDocumentLocator(org.xml.sax.Locator locator)
|
void |
startDocument()
|
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList atts)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
java.io.Writer _out
org.xml.sax.DocumentHandler _handler
boolean newLine
| Constructor Detail |
public DebugHandler(org.xml.sax.DocumentHandler handler)
handler - the DocumentHandler to forward events to
public DebugHandler(org.xml.sax.DocumentHandler handler,
java.io.Writer out)
handler - the DocumentHandler to forward events toout - the Writer to print debug information to| Method Detail |
public void characters(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXException
public void endDocument()
throws org.xml.sax.SAXException
endDocument in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXException
public void endElement(java.lang.String name)
throws org.xml.sax.SAXException
endElement in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws org.xml.sax.SAXException
ignorableWhitespace in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXException
public 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.DocumentHandler
public void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.DocumentHandlerorg.xml.sax.SAXException
public 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.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||