Class AbstractStAXStreamReader

java.lang.Object
org.jdom2.output.support.AbstractOutputProcessor
org.jdom2.output.support.AbstractStAXStreamReader
All Implemented Interfaces:
XMLStreamConstants, XMLStreamReader

public abstract class AbstractStAXStreamReader extends AbstractOutputProcessor implements XMLStreamReader
An XMLStreamReader implementation that reads the XML document out of a JDOM Document. This class is marked as abstract even though it is a full implementation of the XMLReader. This class can be overridden if needed. If you extend this class, you will need to also extend AbstractStAXStreamReaderProcessor and supply an instance of that customised class to the StAXStreamReader class.

The reader reads XML Events by walking the JDOM tree, reporting all XML stream events as it encounters them in the JDOM.

This class is the inverse of the class StAXStreamOutputter in the sense that this class is read from (it's an XMLStreamReader implementation) by interpreting a JDOM Document whereas the StAXStreamOutputter interprets a JDOM Document and writes to a user-supplied XMLStreamWriter. It is the difference between a 'pull' concept and a 'push' concept.

Since:
JDOM 2.1
Author:
gordon burgett https://github.com/gburgett, Rolf Lear