Class JingleDescriptionProvider
- java.lang.Object
-
- org.jivesoftware.smack.provider.AbstractProvider<E>
-
- org.jivesoftware.smack.provider.Provider<EE>
-
- org.jivesoftware.smack.provider.ExtensionElementProvider<JingleDescription>
-
- org.jivesoftware.smackx.jingleold.provider.JingleDescriptionProvider
-
- Direct Known Subclasses:
JingleDescriptionProvider.Audio
public abstract class JingleDescriptionProvider extends ExtensionElementProvider<JingleDescription>
Parser for a Jingle description.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JingleDescriptionProvider.Audio
Jingle audio.
-
Constructor Summary
Constructors Constructor Description JingleDescriptionProvider()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract JingleDescription
getInstance()
Return a new instance of this class.JingleDescription
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
-
-
-
-
Constructor Detail
-
JingleDescriptionProvider
public JingleDescriptionProvider()
-
-
Method Detail
-
parsePayload
protected PayloadType parsePayload(XmlPullParser parser)
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
protected abstract JingleDescription getInstance()
Return a new instance of this class. Subclasses must overwrite this method.- Returns:
- the jingle description.
-
-