Class ItemProvider


  • public class ItemProvider
    extends org.jivesoftware.smack.provider.ExtensionElementProvider<Item>
    Parses an item element as is defined in both the PubSubNamespace.basic and PubSubNamespace.event namespaces. To parse the item contents, it will use whatever ExtensionElementProvider is registered in smack.providers for its element name and namespace. If no provider is registered, it will return a SimplePayload.
    • 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 java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemProvider()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Item 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 Detail

      • ItemProvider

        public ItemProvider()
    • Method Detail

      • parse

        public Item parse​(org.jivesoftware.smack.xml.XmlPullParser parser,
                          int initialDepth,
                          org.jivesoftware.smack.packet.XmlEnvironment xmlEnvironment)
                   throws org.jivesoftware.smack.xml.XmlPullParserException,
                          java.io.IOException,
                          org.jivesoftware.smack.parsing.SmackParsingException
        Specified by:
        parse in class org.jivesoftware.smack.provider.Provider<Item>
        Throws:
        org.jivesoftware.smack.xml.XmlPullParserException
        java.io.IOException
        org.jivesoftware.smack.parsing.SmackParsingException