|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface for listening to an XML parse. Called by XMLParser.parse(java.lang.CharSequence).
This is a streaming API a la JAX, but much more simplistic.
| Method Summary | |
void |
character(char ch)
Callback indicating a character of #PCDATA. |
void |
endDocument()
Callback indicating the end of the document. |
void |
endElement(String name)
Callback indicating an closing tag. |
void |
startDocument()
Callback indicating the beginning of the document. |
void |
startElement(String name,
Map attrs)
Callback indicating an opening tag. |
| Method Detail |
public void startDocument()
throws XMLParseException
XMLParseException - to stop the parse. The exception is not
caught by XMLParser.parse(java.lang.CharSequence).
public void endDocument()
throws XMLParseException
XMLParseException - to stop the parse. The exception is not
caught by XMLParser.parse(java.lang.CharSequence).
public void startElement(String name,
Map attrs)
throws XMLParseException
name - the name of the tag.attrs - a map representing the attributes and values of the tag.
XMLParseException - to stop the parse. The exception is not
caught by XMLParser.parse(java.lang.CharSequence).
public void endElement(String name)
throws XMLParseException
name - the name of the tag.
XMLParseException - to stop the parse. The exception is not
caught by XMLParser.parse(java.lang.CharSequence).
public void character(char ch)
throws XMLParseException
#PCDATA.
ch - the character.
XMLParseException - to stop the parse. The exception is not
caught by XMLParser.parse(java.lang.CharSequence).
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||