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 TypeMethodDescriptionint
getAttributeName
(int index) Returns the localpart of the attribute's name ornull
in 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) int
int
getDepth()
int
getName()
Return the name for the current START_ELEMENT or END_ELEMENT event.getNamespace
(String prefix) int
getNamespacePrefix
(int pos) getNamespaceUri
(int pos) getProperty
(String name) getQName()
getText()
boolean
next()
nextTag()
nextText()
Reads the content of a text-only element, an exception is thrown if this is not a text-only element.boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jivesoftware.smack.xml.XmlPullParser
getAttributeValue, getDefaultNamespace
-
Method Details
-
getProperty
- Specified by:
getProperty
in interfaceXmlPullParser
-
getInputEncoding
- Specified by:
getInputEncoding
in interfaceXmlPullParser
-
getNamespaceCount
- Specified by:
getNamespaceCount
in interfaceXmlPullParser
-
getNamespacePrefix
- Specified by:
getNamespacePrefix
in interfaceXmlPullParser
-
getNamespaceUri
- Specified by:
getNamespaceUri
in interfaceXmlPullParser
-
getNamespace
- Specified by:
getNamespace
in interfaceXmlPullParser
-
getNamespace
- Specified by:
getNamespace
in interfaceXmlPullParser
-
getDepth
- Specified by:
getDepth
in interfaceXmlPullParser
-
getPositionDescription
- Specified by:
getPositionDescription
in interfaceXmlPullParser
-
getLineNumber
- Specified by:
getLineNumber
in interfaceXmlPullParser
-
getColumnNumber
- Specified by:
getColumnNumber
in interfaceXmlPullParser
-
isWhiteSpace
- Specified by:
isWhiteSpace
in interfaceXmlPullParser
-
getText
- Specified by:
getText
in interfaceXmlPullParser
-
getName
Description copied from interface:XmlPullParser
Return 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:
getName
in interfaceXmlPullParser
- Returns:
- the name for the current START_ELEMETN or END_ELEMENT event.
-
getQName
- Specified by:
getQName
in interfaceXmlPullParser
-
getPrefix
- Specified by:
getPrefix
in interfaceXmlPullParser
-
getAttributeCount
- Specified by:
getAttributeCount
in interfaceXmlPullParser
-
getAttributeNamespace
- Specified by:
getAttributeNamespace
in interfaceXmlPullParser
-
getAttributeName
Description copied from interface:XmlPullParser
Returns the localpart of the attribute's name ornull
in case the index does not refer to an attribute.- Specified by:
getAttributeName
in interfaceXmlPullParser
- Parameters:
index
- the attribute index.- Returns:
- the localpart of the attribute's name or
null
.
-
getAttributeQName
- Specified by:
getAttributeQName
in interfaceXmlPullParser
-
getAttributePrefix
- Specified by:
getAttributePrefix
in interfaceXmlPullParser
-
getAttributeType
- Specified by:
getAttributeType
in interfaceXmlPullParser
-
getAttributeValue
- Specified by:
getAttributeValue
in interfaceXmlPullParser
-
getAttributeValue
- Specified by:
getAttributeValue
in interfaceXmlPullParser
-
getEventType
- Specified by:
getEventType
in interfaceXmlPullParser
-
next
- Specified by:
next
in interfaceXmlPullParser
- Throws:
XmlPullParserException
-
nextText
Description copied from interface:XmlPullParser
Reads 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:
nextText
in 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:
nextTag
in interfaceXmlPullParser
- Throws:
IOException
XmlPullParserException
-
supportsRoundtrip
- Specified by:
supportsRoundtrip
in interfaceXmlPullParser
-