diff --git a/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java b/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java index 225ff3079..87250c50f 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java @@ -1,6 +1,6 @@ /** * - * Copyright © 2014 Florian Schmaus + * Copyright © 2014-2018 Florian Schmaus * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,6 +22,17 @@ import org.jivesoftware.smack.util.ParserUtils; import org.xmlpull.v1.XmlPullParser; +/** + * Smack provider are the parsers used to deserialize raw XMPP into the according Java {@link Element}s. + *
+ * At any time when {@link #parse(XmlPullParser, int)} 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 + * {@link org.jivesoftware.smack.SmackException} should be thrown. + *
+ * + * @author Florian Schmaus + * @param