org.jivesoftware.smackx.bytestreams.ibb.provider
Class DataPacketProvider
java.lang.Object
org.jivesoftware.smackx.bytestreams.ibb.provider.DataPacketProvider
- All Implemented Interfaces:
- IQProvider, PacketExtensionProvider
public class DataPacketProvider
- extends Object
- implements PacketExtensionProvider, IQProvider
Parses an In-Band Bytestream data packet which can be a packet extension of
either an IQ stanza or a message stanza.
- Author:
- Henning Staib
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataPacketProvider
public DataPacketProvider()
parseExtension
public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
throws Exception
- Description copied from interface:
PacketExtensionProvider
- Parse an extension sub-packet and create a PacketExtension instance. At
the beginning of the method call, the xml parser will be positioned on the
opening element of the packet extension. At the end of the method call, the
parser must be positioned on the closing element of the packet extension.
- Specified by:
parseExtension
in interface PacketExtensionProvider
- Parameters:
parser
- an XML parser.
- Returns:
- a new IQ instance.
- Throws:
Exception
- if an error occurs parsing the XML.
parseIQ
public IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
throws Exception
- Description copied from interface:
IQProvider
- Parse the IQ sub-document and create an IQ instance. Each IQ must have a
single child element. At the beginning of the method call, the xml parser
will be positioned at the opening tag of the IQ child element. At the end
of the method call, the parser must be positioned on the closing tag
of the child element.
- Specified by:
parseIQ
in interface IQProvider
- Parameters:
parser
- an XML parser.
- Returns:
- a new IQ instance.
- Throws:
Exception
- if an error occurs parsing the XML.
Copyright © 2003-2007 Jive Software.