Class JingleContentDescriptionProvider
java.lang.Object
org.jivesoftware.smack.provider.AbstractProvider<E>
org.jivesoftware.smack.provider.Provider<E>
org.jivesoftware.smack.provider.ExtensionElementProvider<JingleContentDescription>
org.jivesoftware.smackx.jingleold.provider.JingleContentDescriptionProvider
- Direct Known Subclasses:
JingleContentDescriptionProvider.Audio
public abstract class JingleContentDescriptionProvider
extends ExtensionElementProvider<JingleContentDescription>
Parser for a Jingle description.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Jingle audio.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 JingleContentDescription
Return a new instance of this class.parse
(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) Parse a iq/jingle/description element.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
-
JingleContentDescriptionProvider
public JingleContentDescriptionProvider()
-
-
Method Details
-
parsePayload
Parse a iq/jingle/description/payload-type element.- Parameters:
parser
- the input to parse- Returns:
- a payload type element
-
parse
public JingleContentDescription parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException Parse a iq/jingle/description element.- Specified by:
parse
in classProvider<JingleContentDescription>
- Parameters:
parser
- 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 content description.
-