|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.tool.xml.parser.io.ParserListenerWriter
public class ParserListenerWriter
Debugging util.
| Constructor Summary | |
|---|---|
ParserListenerWriter(Appender writer)
Construct a new ParserListenerWriter with the given appender and default formatted to true; |
|
ParserListenerWriter(Appender writer,
boolean formatted)
|
|
| Method Summary | |
|---|---|
void |
close()
Triggered when parsing is finished and the stream will be closed. |
void |
comment(String comment)
Triggered for comments that are found. |
void |
endElement(String curentTag,
String ns)
Triggered on a closing tag. |
void |
init()
Triggered when parsing has started. |
void |
startElement(String currentTag,
Map<String,String> attributes,
String ns)
Triggered on an opening tag. |
void |
text(String text)
Called when text is encountered. |
void |
unknownText(String string)
Triggered for text found outside root tag. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParserListenerWriter(Appender writer,
boolean formatted)
writer - the appenderformatted - true if output should be formattedpublic ParserListenerWriter(Appender writer)
writer - the appender| Method Detail |
|---|
public void unknownText(String string)
XMLParserListener
unknownText in interface XMLParserListenerstring - the text
public void startElement(String currentTag,
Map<String,String> attributes,
String ns)
XMLParserListener
startElement in interface XMLParserListenercurrentTag - the tag of the elementattributes - the attributes found on the tagns - the namespace or empty String
public void endElement(String curentTag,
String ns)
XMLParserListener
endElement in interface XMLParserListenercurentTag - the tagns - the namespace or empty Stringpublic void comment(String comment)
XMLParserListener
comment in interface XMLParserListenercomment - the commentpublic void init()
XMLParserListener
init in interface XMLParserListenerpublic void close()
XMLParserListener
close in interface XMLParserListenerpublic void text(String text)
XMLParserListener
text in interface XMLParserListenertext - the text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||