|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XmlPullNode
This class represents pullable XML subtree - children are built on demand.
XmlNode
Method Summary | |
---|---|
java.util.Enumeration |
children()
This is not recommened method to pull children when node is not finished (use readNextChild() instead) as Enumeration interface does not allow to throw XmlPullParserException so any parsing exeption is wrapped into RuntimeException making code more messy... |
int |
getChildrenCountSoFar()
|
XmlPullParser |
getPullParser()
Get parser that is use to build this node tree and this pull node becomes finished - the caller is responsibile to move pull parser state to the end tag of this node (or parent pull node will be left in unconsistent state!!!!). |
boolean |
isFinished()
Is pull parsing of node finished. |
XmlNode |
newNode()
context sensitive factory method to create the same type of node |
XmlPullNode |
newPullNode(XmlPullParser pp)
|
void |
readChildren()
Read all reminaing children up to end tag. |
java.lang.Object |
readNextChild()
This is preferred method to pull children (children() requires .wrapping object Enumeration). |
void |
resetPullNode()
|
void |
setPullParser(XmlPullParser pp)
Reset pull node to use pull parser. |
void |
skipChildren()
|
Methods inherited from interface org.gjt.xpp.XmlTag |
---|
getLocalName, getNamespaceUri, getPrefix, getRawName, modifyTag, resetTag |
Method Detail |
---|
void resetPullNode()
XmlNode newNode() throws XmlPullParserException
XmlNode
newNode
in interface XmlNode
XmlPullParserException
XmlPullNode newPullNode(XmlPullParser pp) throws XmlPullParserException
XmlPullParserException
boolean isFinished()
XmlPullParser getPullParser() throws java.io.IOException, XmlPullParserException
NOTE: this pull node must be in unfinished state or exception will be thrown
java.io.IOException
XmlPullParserException
void setPullParser(XmlPullParser pp) throws XmlPullParserException
XmlPullParserException
int getChildrenCountSoFar()
java.util.Enumeration children()
children
in interface XmlNode
readNextChild()
java.lang.Object readNextChild() throws XmlPullParserException, java.io.IOException
XmlPullParserException
java.io.IOException
children()
void readChildren() throws XmlPullParserException, java.io.IOException
XmlPullParserException
java.io.IOException
void skipChildren() throws XmlPullParserException, java.io.IOException
XmlPullParserException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |