Class Provider<E extends Element>

java.lang.Object
org.jivesoftware.smack.provider.AbstractProvider<E>
org.jivesoftware.smack.provider.Provider<E>
Type Parameters:
E - the type of the resulting element.
Direct Known Subclasses:
ExtensionElementProvider, NonzaProvider

public abstract class Provider<E extends Element> extends AbstractProvider<E>
Smack provider are the parsers used to deserialize raw XMPP into the according Java Elements.

At any time when parse(XmlPullParser, int, XmlEnvironment, JxmppContext) is invoked any type of exception can be thrown. If the parsed element does not follow the specification, for example by putting a string where only integers are allowed, then a SmackException should be thrown.