Package org.jdom2.output.support
Class AbstractStAXStreamReaderProcessor
- java.lang.Object
-
- org.jdom2.output.support.AbstractStAXStreamReaderProcessor
-
- All Implemented Interfaces:
StAXStreamReaderProcessor
public class AbstractStAXStreamReaderProcessor extends java.lang.Object implements StAXStreamReaderProcessor
A complete (but still abstract) implementation of a class that produces XMLStreamReaders based on the class AbstractXMLStreamReader. Users who need to make changes to the output format that are not possible with just the Format class, may need to extend this class to create instances of their own XMLStreamReader. Their own implementation could in turn extend the AbstractXMLReader class which contains the bulk of the StAX Logic.- Author:
- Rolf Lear
-
-
Constructor Summary
Constructors Constructor Description AbstractStAXStreamReaderProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.xml.stream.XMLStreamReader
buildReader(Document doc, Format format)
Return an implementation of an XMLStreamReader that represents a JDOM Document.
-
-
-
Method Detail
-
buildReader
public javax.xml.stream.XMLStreamReader buildReader(Document doc, Format format)
Description copied from interface:StAXStreamReaderProcessor
Return an implementation of an XMLStreamReader that represents a JDOM Document.- Specified by:
buildReader
in interfaceStAXStreamReaderProcessor
- Parameters:
doc
- The Document to represent.format
- The Format to apply to the document.- Returns:
- The XMLStreamReader that expresses the JDOM Document.
-
-