Class AbstractJsonExtensionProvider<J extends AbstractJsonPacketExtension>

java.lang.Object
org.jivesoftware.smack.provider.AbstractProvider<E>
org.jivesoftware.smack.provider.Provider<E>
org.jivesoftware.smack.provider.ExtensionElementProvider<J>
org.jivesoftware.smackx.json.provider.AbstractJsonExtensionProvider<J>
Direct Known Subclasses:
GcmExtensionProvider, JsonExtensionProvider

public abstract class AbstractJsonExtensionProvider<J extends AbstractJsonPacketExtension> extends org.jivesoftware.smack.provider.ExtensionElementProvider<J>
  • Nested Class Summary

    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 Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract J
    from(String json)
     
    parse(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment)
     

    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 Details

    • AbstractJsonExtensionProvider

      public AbstractJsonExtensionProvider()
  • Method Details

    • parse

      public J parse(org.jivesoftware.smack.xml.XmlPullParser parser, int initialDepth, org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment) throws org.jivesoftware.smack.xml.XmlPullParserException, IOException
      Specified by:
      parse in class org.jivesoftware.smack.provider.Provider<J extends AbstractJsonPacketExtension>
      Throws:
      org.jivesoftware.smack.xml.XmlPullParserException
      IOException
    • from

      public abstract J from(String json)