Class ItemProvider
java.lang.Object
org.jivesoftware.smack.provider.AbstractProvider<E>
org.jivesoftware.smack.provider.Provider<E>
org.jivesoftware.smack.provider.ExtensionElementProvider<Item>
org.jivesoftware.smackx.pubsub.provider.ItemProvider
Parses an item element as is defined in both the
PubSubNamespace.basic
and
PubSubNamespace.event
namespaces. To parse the item contents, it will use whatever
ExtensionElementProvider
is registered in smack.providers for its element name and namespace. If no
provider is registered, it will return a SimplePayload
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smack.provider.AbstractProvider
AbstractProvider.NumberFormatParseException, AbstractProvider.TextParseException, AbstractProvider.WrappableParser<E>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionparse
(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass, toUrl, wrapExceptions
-
Constructor Details
-
ItemProvider
public ItemProvider()
-
-
Method Details
-
parse
public Item parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException, SmackParsingException - Specified by:
parse
in classProvider<Item>
- Throws:
XmlPullParserException
IOException
SmackParsingException
-