Class AbstractPullReader

    • Method Detail

      • pullNextEvent

        protected abstract int pullNextEvent()
        Pull the next event from the stream.

        This MUST return START_NODE, END_NODE, TEXT, COMMENT, OTHER or throw StreamException.

        The underlying pull parser will most likely return its own event types. These must be mapped to the appropriate events.

      • pullElementName

        protected abstract java.lang.String pullElementName()
        Pull the name of the current element from the stream.
      • pullText

        protected abstract java.lang.String pullText()
        Pull the contents of the current text node from the stream.
      • hasMoreChildren

        public boolean hasMoreChildren()
        Description copied from interface: HierarchicalStreamReader
        Does the node have any more children remaining that have not yet been read?
      • moveUp

        public void moveUp()
        Description copied from interface: HierarchicalStreamReader
        Select the parent node as current node.
      • mark

        public void mark()
      • reset

        public void reset()
      • getValue

        public java.lang.String getValue()
        Description copied from interface: HierarchicalStreamReader
        Get the value (text content) of the current node.
      • getAttributeNames

        public java.util.Iterator getAttributeNames()
        Description copied from interface: HierarchicalStreamReader
        Iterator with the names of the attributes.

        Note, the iterator is only valid as long as the internal state of the underlying parser is still at the start of the current element. The behavior is undefined if the parser moved on.

      • getNodeName

        public java.lang.String getNodeName()
        Description copied from interface: HierarchicalStreamReader
        Get the name of the current node.