parseExtension
public PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser)
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.