|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.xml.xpp3.XmlParser
public class XmlParser
XmlParser is a helper/wrapper around XPP3.
Constructor Summary | |
---|---|
XmlParser(org.xmlpull.v1.XmlPullParser xppParam)
Create a new XmlParser using the given XmlPullParser. |
Method Summary | |
---|---|
void |
nextTag()
next start or end tag. |
void |
oneOrMore(String tag,
XmlProcessor xmlElement)
One or more element. |
void |
optional(String tag,
XmlProcessor xmlElement)
Optional element. |
void |
read(InputStream inputStream)
Load xml. |
void |
required(String tag,
XmlProcessor xmlElement)
Required element. |
void |
zeroOrMore(String tag,
XmlProcessor xmlElement)
Zero or more element. |
void |
zeroOrMore(SubstitutionGroup substGroup)
SubstitionGroup Support. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlParser(org.xmlpull.v1.XmlPullParser xppParam)
xppParam
- the XmlPullParser to useMethod Detail |
---|
public void read(InputStream inputStream) throws Exception
inputStream
- InputStream to read from
Exception
- exceptionpublic void required(String tag, XmlProcessor xmlElement) throws Exception
tag
- required tagxmlElement
- handler
Exception
- exceptionpublic void optional(String tag, XmlProcessor xmlElement) throws Exception
tag
- required tagxmlElement
- handler
Exception
- exceptionpublic void zeroOrMore(String tag, XmlProcessor xmlElement) throws Exception
tag
- element tagxmlElement
- handler
Exception
- exceptionpublic void zeroOrMore(SubstitutionGroup substGroup) throws Exception
substGroup
- SubstitutionGroup
Exception
- exceptionpublic void oneOrMore(String tag, XmlProcessor xmlElement) throws Exception
tag
- element tagxmlElement
- handler
Exception
- exceptionpublic void nextTag() throws Exception
Exception
- exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |