Class JivePropertiesExtensionProvider
- java.lang.Object
-
- org.jivesoftware.smack.provider.AbstractProvider<E>
-
- org.jivesoftware.smack.provider.Provider<EE>
-
- org.jivesoftware.smack.provider.ExtensionElementProvider<JivePropertiesExtension>
-
- org.jivesoftware.smackx.jiveproperties.provider.JivePropertiesExtensionProvider
-
public class JivePropertiesExtensionProvider extends ExtensionElementProvider<JivePropertiesExtension>
-
-
Constructor Summary
Constructors Constructor Description JivePropertiesExtensionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JivePropertiesExtension
parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)
Parse a properties sub-packet.-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass
-
-
-
-
Constructor Detail
-
JivePropertiesExtensionProvider
public JivePropertiesExtensionProvider()
-
-
Method Detail
-
parse
public JivePropertiesExtension parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, java.io.IOException
Parse a properties sub-packet. If any errors occur while de-serializing Java object properties, an exception will be printed and not thrown since a thrown exception will shut down the entire connection. ClassCastExceptions will occur when both the sender and receiver of the stanza don't have identical versions of the same class.Note that you have to explicitly enabled Java object deserialization with @{link
JivePropertiesManager.setJavaObjectEnabled(boolean)
- Specified by:
parse
in classProvider<JivePropertiesExtension>
- Parameters:
parser
- the XML parser, positioned at the start of a properties sub-packet.- Returns:
- a map of the properties.
- Throws:
java.io.IOException
- if an I/O error occurred.XmlPullParserException
- if an error in the XML parser occurred.
-
-