|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.ikslibs.sax.SAXDebuggerHandler
public class SAXDebuggerHandler
Serves primarily for debugging, it routes SAX events to the sink but prints them first.
| Field Summary | |
|---|---|
boolean |
closePrinterOnEndDocument
If true then the print writer is closed when the
ContentHandler.endDocument() is announced. |
protected int |
indentStep
number of spaces used for identation. |
ContentHandler |
sink
routes the events here. |
LexicalHandler |
sink2
routes the events here. |
protected PrintWriter |
w
prints events here. |
| Constructor Summary | |
|---|---|
SAXDebuggerHandler(ContentHandler sink,
LexicalHandler sink2,
PrintWriter w,
int identStep,
boolean check)
Constructor. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
endEntity(String name)
|
void |
endPrefixMapping(String prefix)
|
protected void |
ident()
Prints ident number of spaces. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
static SAXDebuggerHandler |
newInstanceToSystemOut(ContentHandler sink,
LexicalHandler sink2,
int identStep,
boolean check)
Constructor. |
void |
processingInstruction(String target,
String data)
|
void |
setDocumentLocator(Locator locator)
|
void |
skippedEntity(String name)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(String name,
String publicId,
String systemId)
|
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
|
void |
startEntity(String name)
|
void |
startPrefixMapping(String prefix,
String uri)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final ContentHandler sink
public final LexicalHandler sink2
protected final PrintWriter w
protected final int indentStep
public boolean closePrinterOnEndDocument
true then the print writer is closed when the
ContentHandler.endDocument() is announced.
| Constructor Detail |
|---|
public SAXDebuggerHandler(ContentHandler sink,
LexicalHandler sink2,
PrintWriter w,
int identStep,
boolean check)
sink - routes the events here.sink2 - routes the events here. May be null.w - prints events here.identStep - number of spaces used for identation.check - if true then elements are checked for proper
nesting order.| Method Detail |
|---|
protected void ident()
ident number of spaces.
public static SAXDebuggerHandler newInstanceToSystemOut(ContentHandler sink,
LexicalHandler sink2,
int identStep,
boolean check)
sink - routes the events here.sink2 - routes the events here. May be null.identStep - number of spaces used for identation.check - if true then elements are checked for proper
nesting order.
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandler
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXException
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerSAXException
public void endElement(String uri,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXException
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerSAXException
public void skippedEntity(String name)
throws SAXException
skippedEntity in interface ContentHandlerSAXException
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXException
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXException
public void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXException
public void endEntity(String name)
throws SAXException
endEntity in interface LexicalHandlerSAXException
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXException
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
startDTD in interface LexicalHandlerSAXException
public void startEntity(String name)
throws SAXException
startEntity in interface LexicalHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||