Interface XmlPullParser

    • Method Detail

      • getProperty

        java.lang.Object getProperty​(java.lang.String name)
      • getInputEncoding

        java.lang.String getInputEncoding()
      • getNamespace

        java.lang.String getNamespace​(java.lang.String prefix)
      • getDefaultNamespace

        default java.lang.String getDefaultNamespace()
      • getDepth

        int getDepth()
      • getPositionDescription

        java.lang.String getPositionDescription()
      • getLineNumber

        int getLineNumber()
      • getColumnNumber

        int getColumnNumber()
      • getText

        java.lang.String getText()
      • getNamespace

        java.lang.String getNamespace()
      • getName

        java.lang.String getName()
        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.
        Returns:
        the name for the current START_ELEMETN or END_ELEMENT event.
      • getQName

        javax.xml.namespace.QName getQName()
      • getPrefix

        java.lang.String getPrefix()
      • getAttributeCount

        int getAttributeCount()
      • getAttributeNamespace

        java.lang.String getAttributeNamespace​(int index)
      • getAttributeName

        java.lang.String getAttributeName​(int index)
        Returns the loacalpart of the attribute's name or null in case the index does not refer to an attribute.
        Parameters:
        index - the attribute index.
        Returns:
        the localpart of the attribute's name or null.
      • getAttributeQName

        javax.xml.namespace.QName getAttributeQName​(int index)
      • getAttributePrefix

        java.lang.String getAttributePrefix​(int index)
      • getAttributeType

        java.lang.String getAttributeType​(int index)
      • getAttributeValue

        java.lang.String getAttributeValue​(int index)
      • getAttributeValue

        java.lang.String getAttributeValue​(java.lang.String namespace,
                                           java.lang.String name)
      • getAttributeValue

        default java.lang.String getAttributeValue​(java.lang.String name)
      • nextText

        java.lang.String nextText()
                           throws java.io.IOException,
                                  XmlPullParserException
        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.
        Returns:
        the textual content of the current element.
        Throws:
        java.io.IOException - in case of an IO error.
        XmlPullParserException - in case of an XML pull parser error.
      • supportsRoundtrip

        boolean supportsRoundtrip()