Class StaxReader

    • Field Detail

      • qnameMap

        private final QNameMap qnameMap
      • in

        private final javax.xml.stream.XMLStreamReader in
    • Method Detail

      • getAttribute

        public java.lang.String getAttribute​(java.lang.String name)
        Description copied from interface: HierarchicalStreamReader
        Get the value of an attribute of the current node.

        If no such attribute exists, the method returns null.

      • getAttribute

        public java.lang.String getAttribute​(int index)
        Description copied from interface: HierarchicalStreamReader
        Get the value of an attribute of the current node, by index.

        Note, the behavior of this method is dependent on the underlying parser when calling it with a non-existing index. Typically some kind of RuntimeException is thrown.

      • getAttributeCount

        public int getAttributeCount()
        Description copied from interface: HierarchicalStreamReader
        Number of attributes in current node.
      • getAttributeName

        public java.lang.String getAttributeName​(int index)
        Description copied from interface: HierarchicalStreamReader
        Name of attribute in current node.

        Note, the behavior of this method is dependent on the underlying parser when calling it with a non-existing index. Typically some kind of RuntimeException is thrown.

      • appendErrors

        public void appendErrors​(ErrorWriter errorWriter)
        Description copied from interface: HierarchicalStreamReader
        If any errors are detected, allow the reader to add any additional information that can aid debugging (such as line numbers, XPath expressions, etc).
        Parameters:
        errorWriter - the error writer
      • close

        public void close()
        Description copied from interface: HierarchicalStreamReader
        Close the reader, if necessary.