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
,FormFieldChildElementProvider
,NonzaProvider
public abstract class Provider<E extends Element> extends AbstractProvider<E>
Smack provider are the parsers used to deserialize raw XMPP into the according JavaElement
s.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 aSmackException
should be thrown.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.provider.AbstractProvider
AbstractProvider.NumberFormatParseException, AbstractProvider.TextParseException, AbstractProvider.WrappableParser<E>
-
-
Constructor Summary
Constructors Constructor Description Provider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description E
parse(XmlPullParser parser)
abstract E
parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)
E
parse(XmlPullParser parser, XmlEnvironment outerXmlEnvironment)
-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass, wrapExceptions
-
-
-
-
Constructor Detail
-
Provider
public Provider()
-
-
Method Detail
-
parse
public final E parse(XmlPullParser parser) throws IOException, XmlPullParserException, SmackParsingException
-
parse
public final E parse(XmlPullParser parser, XmlEnvironment outerXmlEnvironment) throws IOException, XmlPullParserException, SmackParsingException
-
parse
public abstract E parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException, SmackParsingException, ParseException
-
-