|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LazyHandler
A handler that can terminate the parsing anytime. Useful when you already got what you wanted from the xml. This saves processing time and memory. Note that the implemention should be the one tracking the stack and the state.
Method Summary | |
---|---|
void |
attribute(String name,
String value)
Callback after traversing the attributes of an element. |
void |
characters(char[] data,
int start,
int length)
Callback after traversing the text content of an element. |
boolean |
endElement()
Callback after traversing the end of xml elements (E.g </foo> or />). |
boolean |
rootElement(String name,
String namespace)
Callback that gets called only once upon traversing the root xml element. |
boolean |
startElement(String name,
String namespace)
Callback after traversing the start of xml elements (E.g <foo>). |
Method Detail |
---|
boolean rootElement(String name, String namespace)
boolean startElement(String name, String namespace)
boolean endElement()
void attribute(String name, String value)
void characters(char[] data, int start, int length)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |