Package org.jivesoftware.smack.xml
Class SmackXmlParser
java.lang.Object
org.jivesoftware.smack.xml.SmackXmlParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic XmlPullParserFactory
static XmlPullParser
newXmlParser
(InputStream inputStream) static XmlPullParser
newXmlParser
(Reader reader) Creates a new XmlPullParser suitable for parsing XMPP.static void
setXmlPullParserFactory
(XmlPullParserFactory xmlPullParserFactory)
-
Constructor Details
-
SmackXmlParser
public SmackXmlParser()
-
-
Method Details
-
getXmlPullParserFactory
-
setXmlPullParserFactory
-
newXmlParser
Creates a new XmlPullParser suitable for parsing XMPP. This means in particular that FEATURE_PROCESS_NAMESPACES is enabled.Note that not all XmlPullParser implementations will return a String on
getText()
if the parser is on START_ELEMENT or END_ELEMENT. So you must not rely on this behavior when using the parser.- Parameters:
reader
- a reader to read the XML data from.- Returns:
- A suitable XmlPullParser for XMPP parsing.
- Throws:
XmlPullParserException
- in case of an XmlPullParserException.
-
newXmlParser
- Throws:
XmlPullParserException
-