Class ItemProvider
- java.lang.Object
-
- org.jivesoftware.smack.provider.AbstractProvider<E>
-
- org.jivesoftware.smack.provider.Provider<EE>
-
- org.jivesoftware.smack.provider.ExtensionElementProvider<Item>
-
- org.jivesoftware.smackx.pubsub.provider.ItemProvider
-
public class ItemProvider extends ExtensionElementProvider<Item>
Parses an item element as is defined in both thePubSubNamespace.basic
andPubSubNamespace.event
namespaces. To parse the item contents, it will use whateverExtensionElementProvider
is registered in smack.providers for its element name and namespace. If no provider is registered, it will return aSimplePayload
.
-
-
Constructor Summary
Constructors Constructor Description ItemProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Item
parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)
-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass
-
-
-
-
Constructor Detail
-
ItemProvider
public ItemProvider()
-
-
Method Detail
-
parse
public Item parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, java.io.IOException, SmackParsingException
- Specified by:
parse
in classProvider<Item>
- Throws:
XmlPullParserException
java.io.IOException
SmackParsingException
-
-