|
||||||||||
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 appenderMethod Detail |
---|
public void unknownText(String string)
XMLParserListener
unknownText
in interface XMLParserListener
string
- the textpublic void startElement(String currentTag, Map<String,String> attributes, String ns)
XMLParserListener
startElement
in interface XMLParserListener
currentTag
- the tag of the elementattributes
- the attributes found on the tagns
- the namespace or empty Stringpublic void endElement(String curentTag, String ns)
XMLParserListener
endElement
in interface XMLParserListener
curentTag
- the tagns
- the namespace or empty Stringpublic void comment(String comment)
XMLParserListener
comment
in interface XMLParserListener
comment
- the commentpublic void init()
XMLParserListener
init
in interface XMLParserListener
public void close()
XMLParserListener
close
in interface XMLParserListener
public void text(String text)
XMLParserListener
text
in interface XMLParserListener
text
- the text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |