public class DataPacketProvider extends Object implements PacketExtensionProvider, IQProvider
Constructor and Description |
---|
DataPacketProvider() |
Modifier and Type | Method and Description |
---|---|
PacketExtension |
parseExtension(org.xmlpull.v1.XmlPullParser parser)
Parse an extension sub-packet and create a PacketExtension instance.
|
IQ |
parseIQ(org.xmlpull.v1.XmlPullParser parser)
Parse the IQ sub-document and create an IQ instance.
|
public DataPacketProvider()
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.public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser) throws Exception
IQProvider
parseIQ
in interface IQProvider
parser
- an XML parser.Exception
- if an error occurs parsing the XML.