Class JingleDescriptionProvider
java.lang.Object
org.jivesoftware.smack.provider.AbstractProvider<E>
org.jivesoftware.smack.provider.Provider<E>
org.jivesoftware.smack.provider.ExtensionElementProvider<JingleDescription>
org.jivesoftware.smackx.jingleold.provider.JingleDescriptionProvider
- Direct Known Subclasses:
JingleDescriptionProvider.Audio
Parser for a Jingle description.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jivesoftware.smack.provider.AbstractProvider
AbstractProvider.NumberFormatParseException, AbstractProvider.TextParseException, AbstractProvider.WrappableParser<E>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract JingleDescription
Return a new instance of this class.parse
(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) Parse a iq/jingle/description element.protected PayloadType
parsePayload
(XmlPullParser parser) Parse a iq/jingle/description/payload-type element.Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass, toUrl, wrapExceptions
-
Constructor Details
-
JingleDescriptionProvider
public JingleDescriptionProvider()
-
-
Method Details
-
parsePayload
Parse a iq/jingle/description/payload-type element.- Parameters:
parser
- TODO javadoc me please the input to parse- Returns:
- a payload type element
-
parse
public JingleDescription parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException Parse a iq/jingle/description element.- Specified by:
parse
in classProvider<JingleDescription>
- Parameters:
parser
- TODO javadoc me please the input to parse- Returns:
- a description element
- Throws:
IOException
- if an I/O error occurred.XmlPullParserException
- if an error in the XML parser occurred.
-
getInstance
Return a new instance of this class. Subclasses must overwrite this method.- Returns:
- the jingle description.
-