Class StackableReader

  • All Implemented Interfaces:
    XMLStreamConstants, XMLStreamReader

    public class StackableReader
    extends Object
    implements XMLStreamReader
    StackableReader A StackableStreamReader provides an additional method push(XMLStreamReader)

    You can call push(...) to add a new XMLStreamReader. The next event will use the pushed stream reader. After the XMLStreamReader is consumed, it is automatically popped off of the stack.

    Note the information returned by the StackableReader is only applicable for the topmost XMLStreamReader. For example the NamespaceContext that is returned is not a combination of all the namespace contexts on the stack.