public class SaxDumper extends Object implements ContentHandler
ContentHandler
which dumps all sax events for debugging
purpose.Modifier and Type | Field and Description |
---|---|
protected PrintStream |
out |
Constructor and Description |
---|
SaxDumper() |
SaxDumper(PrintStream out) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
static String |
dumpAttributes(Attributes atts) |
void |
endDocument() |
void |
endElement(String uri,
String localName,
String qName) |
void |
endPrefixMapping(String prefix) |
void |
ignorableWhitespace(char[] ch,
int start,
int end) |
protected void |
PRL(String s) |
void |
processingInstruction(String target,
String data) |
void |
setDocumentLocator(Locator locator) |
void |
skippedEntity(String name) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attrs) |
void |
startPrefixMapping(String prefix,
String uri) |
protected void |
x_chars(String header,
char[] ch,
int start,
int length) |
protected final PrintStream out
public SaxDumper(PrintStream out)
public SaxDumper()
public static String dumpAttributes(Attributes atts)
protected void PRL(String s)
protected void x_chars(String header, char[] ch, int start, int length)
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void endElement(String uri, String localName, String qName)
endElement
in interface ContentHandler
public void endPrefixMapping(String prefix)
endPrefixMapping
in interface ContentHandler
public void ignorableWhitespace(char[] ch, int start, int end)
ignorableWhitespace
in interface ContentHandler
public void processingInstruction(String target, String data)
processingInstruction
in interface ContentHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
public void skippedEntity(String name)
skippedEntity
in interface ContentHandler
public void startDocument()
startDocument
in interface ContentHandler
public void startElement(String uri, String localName, String qName, Attributes attrs)
startElement
in interface ContentHandler
public void startPrefixMapping(String prefix, String uri)
startPrefixMapping
in interface ContentHandler
see also the complete user documentation .