Class JingleContentDescriptionProvider

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JingleContentDescriptionProvider.Audio
      Jingle audio.
      • Nested classes/interfaces inherited from class org.jivesoftware.smack.provider.AbstractProvider

        org.jivesoftware.smack.provider.AbstractProvider.NumberFormatParseException, org.jivesoftware.smack.provider.AbstractProvider.TextParseException, org.jivesoftware.smack.provider.AbstractProvider.WrappableParser<E extends java.lang.Object>
    • 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​(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment)
      Parse a iq/jingle/description element.
      protected JingleContentDescription.JinglePayloadType parsePayload​(org.jivesoftware.smack.xml.XmlPullParser parser)
      Parse a iq/jingle/description/payload-type element.
      • Methods inherited from class org.jivesoftware.smack.provider.Provider

        parse, parse
      • Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider

        getElementClass, wrapExceptions
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JingleContentDescriptionProvider

        public JingleContentDescriptionProvider()
    • Method Detail

      • parsePayload

        protected JingleContentDescription.JinglePayloadType parsePayload​(org.jivesoftware.smack.xml.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​(org.jivesoftware.smack.xml.XmlPullParser parser,
                                              int initialDepth,
                                              org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment)
                                       throws org.jivesoftware.smack.xml.XmlPullParserException,
                                              java.io.IOException
        Parse a iq/jingle/description element.
        Specified by:
        parse in class org.jivesoftware.smack.provider.Provider<JingleContentDescription>
        Parameters:
        parser - the input to parse
        Returns:
        a description element
        Throws:
        java.io.IOException - if an I/O error occurred.
        org.jivesoftware.smack.xml.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.