public class EndpointProvider
extends java.lang.Object
implements org.jivesoftware.smack.provider.PacketExtensionProvider
Constructor and Description |
---|
EndpointProvider() |
Modifier and Type | Method and Description |
---|---|
org.jivesoftware.smack.packet.PacketExtension |
parseExtension(org.xmlpull.v1.XmlPullParser parser)
Parses a endpoint extension sub-packet and creates a
EndpointPacketExtension instance. |
public org.jivesoftware.smack.packet.PacketExtension parseExtension(org.xmlpull.v1.XmlPullParser parser) throws java.lang.Exception
EndpointPacketExtension
instance. At the beginning of the method
call, the xml parser will be positioned on the opening element of the
packet extension. As required by the smack API, at the end of the method
call, the parser will be positioned on the closing element of the packet
extension.parseExtension
in interface org.jivesoftware.smack.provider.PacketExtensionProvider
parser
- an XML parser positioned at the opening
Endpoint element.EndpointPacketExtension
instance.java.lang.Exception
- if an error occurs parsing the XML.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.