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 extending
AbstractStAXStreamReader) 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
Modifier and TypeMethodDescriptionbuildReader(Document doc, Format format) Return an implementation of an XMLStreamReader that represents a JDOM Document.
-
Method Details
-
buildReader
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.
-