Package org.jdom2.output.support
Interface StAXStreamReaderProcessor
-
- All Known Implementing Classes:
AbstractStAXStreamReaderProcessor
public interface StAXStreamReaderProcessor
A simple interface that allows the implementation of a StAX XMLStreamReader instance for representing a JDOM Document. If a user needs to create a custom way to output as an XMLStreamReader they can implement their own XMLStreamReader class (perhaps by extendingAbstractStAXStreamReader
) and then creating an implementation of this class that creates their own custom XMLStreamReader version. The implementation of this class could then be given to the StAXStreamReader.- Author:
- Rolf Lear
-
-
Method Summary
All Methods Instance Methods Abstract 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
javax.xml.stream.XMLStreamReader buildReader(Document doc, Format format)
Return an implementation of an XMLStreamReader that represents a JDOM Document.- Parameters:
doc
- The Document to represent.format
- The Format to apply to the document.- Returns:
- The XMLStreamReader that expresses the JDOM Document.
-
-