Class MessageEventProvider
- java.lang.Object
-
- org.jivesoftware.smack.provider.AbstractProvider<E>
-
- org.jivesoftware.smack.provider.Provider<E>
-
- org.jivesoftware.smack.provider.ExtensionElementProvider<MessageEvent>
-
- org.jivesoftware.smackx.xevent.provider.MessageEventProvider
-
public class MessageEventProvider extends ExtensionElementProvider<MessageEvent>
The MessageEventProvider parses Message Event packets.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jivesoftware.smack.provider.AbstractProvider
AbstractProvider.NumberFormatParseException, AbstractProvider.TextParseException, AbstractProvider.WrappableParser<E>
-
-
Constructor Summary
Constructors Constructor Description MessageEventProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageEvent
parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment)
Parses a MessageEvent stanza (extension sub-packet).-
Methods inherited from class org.jivesoftware.smack.provider.AbstractProvider
getElementClass, wrapExceptions
-
-
-
-
Constructor Detail
-
MessageEventProvider
public MessageEventProvider()
-
-
Method Detail
-
parse
public MessageEvent parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException
Parses a MessageEvent stanza (extension sub-packet).- Specified by:
parse
in classProvider<MessageEvent>
- Parameters:
parser
- the XML parser, positioned at the starting element of the extension.- Returns:
- a PacketExtension.
- Throws:
IOException
- if an I/O error occurred.XmlPullParserException
- if an error in the XML parser occurred.
-
-