Class JingleContentDescriptionProvider
- java.lang.Object
-
- org.jivesoftware.smack.provider.AbstractProvider<E>
-
- org.jivesoftware.smack.provider.Provider<EE>
-
- 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
Nested Classes Modifier and Type Class Description static class
JingleContentDescriptionProvider.Audio
Jingle audio.
-
Constructor Summary
Constructors Constructor Description JingleContentDescriptionProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract JingleContentDescription
getInstance()
Return a new instance of this class.JingleContentDescription
parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)
Parse a iq/jingle/description element.protected JingleContentDescription.JinglePayloadType
parsePayload(XmlPullParser parser)
Parse a iq/jingle/description/payload-type element.-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass
-
-
-
-
Constructor Detail
-
JingleContentDescriptionProvider
public JingleContentDescriptionProvider()
-
-
Method Detail
-
parsePayload
protected JingleContentDescription.JinglePayloadType parsePayload(XmlPullParser parser)
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
protected abstract JingleContentDescription getInstance()
Return a new instance of this class. Subclasses must overwrite this method.- Returns:
- the jingle content description.
-
-