C
- Class that the packets we will be parsing belong topublic class DefaultPacketExtensionProvider<C extends AbstractPacketExtension>
extends java.lang.Object
implements org.jivesoftware.smack.provider.PacketExtensionProvider
Class
that it has been instantiated for.Constructor and Description |
---|
DefaultPacketExtensionProvider(java.lang.Class<C> c)
Creates a new packet provider for the specified packet extensions.
|
Modifier and Type | Method and Description |
---|---|
C |
parseExtension(org.xmlpull.v1.XmlPullParser parser)
Parse an extension sub-packet and create a C instance.
|
public DefaultPacketExtensionProvider(java.lang.Class<C> c)
c
- the Class
that the packets we will be parsing belong to.public C parseExtension(org.xmlpull.v1.XmlPullParser parser) throws java.lang.Exception
parseExtension
in interface org.jivesoftware.smack.provider.PacketExtensionProvider
parser
- an XML parser positioned at the packet's starting element.java.lang.Exception
- if an error occurs parsing the XML.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.