E - the type of the resulting element.public abstract class Provider<E extends Element>
extends java.lang.Object
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.
| Modifier | Constructor and Description |
|---|---|
protected |
Provider() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<E> |
getElementClass() |
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) |
public final java.lang.Class<E> getElementClass()
public 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