Package org.jivesoftware.smack.xml
Class SmackXmlParser
- java.lang.Object
-
- org.jivesoftware.smack.xml.SmackXmlParser
-
public class SmackXmlParser extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SmackXmlParser()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlPullParserFactory
getXmlPullParserFactory()
static XmlPullParser
newXmlParser(java.io.Reader reader)
Creates a new XmlPullParser suitable for parsing XMPP.static void
setXmlPullParserFactory(XmlPullParserFactory xmlPullParserFactory)
-
-
-
Constructor Detail
-
SmackXmlParser
public SmackXmlParser()
-
-
Method Detail
-
getXmlPullParserFactory
public static XmlPullParserFactory getXmlPullParserFactory()
-
setXmlPullParserFactory
public static void setXmlPullParserFactory(XmlPullParserFactory xmlPullParserFactory)
-
newXmlParser
public static XmlPullParser newXmlParser(java.io.Reader reader) throws XmlPullParserException
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.
-
-