|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.tools.xml.sax.SaxDebuggerPassive
public class SaxDebuggerPassive
Serves primarily for debugging, it routes SAX events to the sink but prints them first.
Field Summary | |
---|---|
protected int |
identStep
number of spaces used for identation. |
ContentHandler |
sink
routes the events here. |
protected PrintWriter |
w
prints events here. |
Constructor Summary | |
---|---|
SaxDebuggerPassive(ContentHandler sink,
PrintWriter w,
int identStep,
boolean check)
Constructor. |
Method Summary | |
---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
endDocument()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
endPrefixMapping(String prefix)
|
protected void |
ident()
Prints ident number of spaces. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
static SaxDebuggerPassive |
newInstance(ContentHandler sink,
PrintStream w,
int identStep,
boolean check)
Constructor. |
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 atts)
|
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
protected final PrintWriter w
protected final int identStep
Constructor Detail |
---|
public SaxDebuggerPassive(ContentHandler sink, PrintWriter w, int identStep, boolean check)
sink
- routes the events here.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 SaxDebuggerPassive newInstance(ContentHandler sink, PrintStream w, int identStep, boolean check)
sink
- routes the events here.w
- prints events here.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 ContentHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
SAXException
public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |