Package org.jivesoftware.smack.xml.stax
Class StaxXmlPullParser
java.lang.Object
org.jivesoftware.smack.xml.stax.StaxXmlPullParser
- All Implemented Interfaces:
XmlPullParser
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jivesoftware.smack.xml.XmlPullParser
XmlPullParser.Event, XmlPullParser.TagEvent -
Method Summary
Modifier and TypeMethodDescriptionintgetAttributeName(int index) Returns the localpart of the attribute's name ornullin case the index does not refer to an attribute.getAttributeNamespace(int index) getAttributePrefix(int index) getAttributeQName(int index) getAttributeType(int index) getAttributeValue(int index) getAttributeValue(String namespace, String name) intintgetDepth()intgetName()Return the name for the current START_ELEMENT or END_ELEMENT event.getNamespace(String prefix) intgetNamespacePrefix(int pos) getNamespaceUri(int pos) getProperty(String name) getQName()getText()booleannext()nextTag()nextText()Reads the content of a text-only element, an exception is thrown if this is not a text-only element.booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jivesoftware.smack.xml.XmlPullParser
getAttributeValue, getDefaultNamespace
-
Method Details
-
getProperty
- Specified by:
getPropertyin interfaceXmlPullParser
-
getInputEncoding
- Specified by:
getInputEncodingin interfaceXmlPullParser
-
getNamespaceCount
- Specified by:
getNamespaceCountin interfaceXmlPullParser
-
getNamespacePrefix
- Specified by:
getNamespacePrefixin interfaceXmlPullParser
-
getNamespaceUri
- Specified by:
getNamespaceUriin interfaceXmlPullParser
-
getNamespace
- Specified by:
getNamespacein interfaceXmlPullParser
-
getNamespace
- Specified by:
getNamespacein interfaceXmlPullParser
-
getDepth
- Specified by:
getDepthin interfaceXmlPullParser
-
getPositionDescription
- Specified by:
getPositionDescriptionin interfaceXmlPullParser
-
getLineNumber
- Specified by:
getLineNumberin interfaceXmlPullParser
-
getColumnNumber
- Specified by:
getColumnNumberin interfaceXmlPullParser
-
isWhiteSpace
- Specified by:
isWhiteSpacein interfaceXmlPullParser
-
getText
- Specified by:
getTextin interfaceXmlPullParser
-
getName
Description copied from interface:XmlPullParserReturn the name for the current START_ELEMENT or END_ELEMENT event. This method must only be called if the current event is START_ELEMENT or END_ELEMENT.- Specified by:
getNamein interfaceXmlPullParser- Returns:
- the name for the current START_ELEMETN or END_ELEMENT event.
-
getQName
- Specified by:
getQNamein interfaceXmlPullParser
-
getPrefix
- Specified by:
getPrefixin interfaceXmlPullParser
-
getAttributeCount
- Specified by:
getAttributeCountin interfaceXmlPullParser
-
getAttributeNamespace
- Specified by:
getAttributeNamespacein interfaceXmlPullParser
-
getAttributeName
Description copied from interface:XmlPullParserReturns the localpart of the attribute's name ornullin case the index does not refer to an attribute.- Specified by:
getAttributeNamein interfaceXmlPullParser- Parameters:
index- the attribute index.- Returns:
- the localpart of the attribute's name or
null.
-
getAttributeQName
- Specified by:
getAttributeQNamein interfaceXmlPullParser
-
getAttributePrefix
- Specified by:
getAttributePrefixin interfaceXmlPullParser
-
getAttributeType
- Specified by:
getAttributeTypein interfaceXmlPullParser
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceXmlPullParser
-
getAttributeValue
- Specified by:
getAttributeValuein interfaceXmlPullParser
-
getEventType
- Specified by:
getEventTypein interfaceXmlPullParser
-
next
- Specified by:
nextin interfaceXmlPullParser- Throws:
XmlPullParserException
-
nextText
Description copied from interface:XmlPullParserReads the content of a text-only element, an exception is thrown if this is not a text-only element.- Precondition: the current event is START_ELEMENT.
- Postcondition: the current event is the corresponding END_ELEMENT.
- Specified by:
nextTextin interfaceXmlPullParser- Returns:
- the textual content of the current element.
- Throws:
IOException- in case of an IO error.XmlPullParserException- in case of an XML pull parser error.
-
nextTag
- Specified by:
nextTagin interfaceXmlPullParser- Throws:
IOExceptionXmlPullParserException
-
supportsRoundtrip
- Specified by:
supportsRoundtripin interfaceXmlPullParser
-