public class ItemProvider extends Object implements PacketExtensionProvider
PubSubNamespace.BASIC
and
PubSubNamespace.EVENT
namespaces. To parse the item contents, it will use whatever
PacketExtensionProvider
is registered in smack.providers for its element name and namespace. If no
provider is registered, it will return a SimplePayload
.Constructor and Description |
---|
ItemProvider() |
Modifier and Type | Method and Description |
---|---|
PacketExtension |
parseExtension(org.xmlpull.v1.XmlPullParser parser)
Parse an extension sub-packet and create a PacketExtension instance.
|
public ItemProvider()
public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser) throws Exception
PacketExtensionProvider
parseExtension
in interface PacketExtensionProvider
parser
- an XML parser.Exception
- if an error occurs parsing the XML.