Package org.jivesoftware.smack.provider
Class Provider<E extends Element>
- java.lang.Object
-
- org.jivesoftware.smack.provider.AbstractProvider<E>
-
- org.jivesoftware.smack.provider.Provider<E>
-
- Type Parameters:
E- the type of the resulting element.
- Direct Known Subclasses:
ExtensionElementProvider,NonzaProvider
public abstract class Provider<E extends Element> extends AbstractProvider<E>
Smack provider are the parsers used to deserialize raw XMPP into the according JavaElements.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 aSmackExceptionshould be thrown.
-
-
Constructor Summary
Constructors Constructor Description Provider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Eparse(org.jivesoftware.smack.xml.XmlPullParser parser)abstract Eparse(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)Eparse(org.jivesoftware.smack.xml.XmlPullParser parser, XmlEnvironment outerXmlEnvironment)-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass
-
-
-
-
Method Detail
-
parse
public final E parse(org.jivesoftware.smack.xml.XmlPullParser parser) throws java.io.IOException, org.jivesoftware.smack.xml.XmlPullParserException, SmackParsingException
- Throws:
java.io.IOExceptionorg.jivesoftware.smack.xml.XmlPullParserExceptionSmackParsingException
-
parse
public final E parse(org.jivesoftware.smack.xml.XmlPullParser parser, XmlEnvironment outerXmlEnvironment) throws java.io.IOException, org.jivesoftware.smack.xml.XmlPullParserException, SmackParsingException
- Throws:
java.io.IOExceptionorg.jivesoftware.smack.xml.XmlPullParserExceptionSmackParsingException
-
parse
public abstract E parse(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws org.jivesoftware.smack.xml.XmlPullParserException, java.io.IOException, SmackParsingException
- Throws:
org.jivesoftware.smack.xml.XmlPullParserExceptionjava.io.IOExceptionSmackParsingException
-
-