E - the type of the resulting element.public abstract class Provider<E extends Element> extends AbstractProvider<E>
Elements.
At any time when parse(XmlPullParser, int, XmlEnvironment) is invoked any type of exception can be thrown. If the parsed
element does not follow the specification, for example by putting a string where only integers are allowed, then a
SmackException should be thrown.
| Constructor and Description |
|---|
Provider() |
| Modifier and Type | Method and Description |
|---|---|
E |
parse(org.jivesoftware.smack.xml.XmlPullParser parser) |
abstract E |
parse(org.jivesoftware.smack.xml.XmlPullParser parser,
int initialDepth,
XmlEnvironment xmlEnvironment) |
E |
parse(org.jivesoftware.smack.xml.XmlPullParser parser,
XmlEnvironment outerXmlEnvironment) |
getElementClasspublic final E parse(org.jivesoftware.smack.xml.XmlPullParser parser) throws java.io.IOException, org.jivesoftware.smack.xml.XmlPullParserException, SmackParsingException
java.io.IOExceptionorg.jivesoftware.smack.xml.XmlPullParserExceptionSmackParsingExceptionpublic final E parse(org.jivesoftware.smack.xml.XmlPullParser parser, XmlEnvironment outerXmlEnvironment) throws java.io.IOException, org.jivesoftware.smack.xml.XmlPullParserException, SmackParsingException
java.io.IOExceptionorg.jivesoftware.smack.xml.XmlPullParserExceptionSmackParsingExceptionpublic abstract E parse(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws org.jivesoftware.smack.xml.XmlPullParserException, java.io.IOException, SmackParsingException
org.jivesoftware.smack.xml.XmlPullParserExceptionjava.io.IOExceptionSmackParsingException