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.basicandPubSubNamespace.eventnamespaces. To parse the item contents, it will use whateverExtensionElementProvideris 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 Itemparse(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:
parsein classProvider<Item>- Throws:
XmlPullParserExceptionjava.io.IOExceptionSmackParsingException
-
-