Top Description Methods
org.jdom2.output.support

public Interface StAXStreamReaderProcessor

Known Direct Implementers
org.jdom2.output.support.AbstractStAXStreamReaderProcessor
Imports
javax.xml.stream.XMLStreamReader, org.jdom2.Document, org.jdom2.output.Format

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 TypeMethod and Description
public XMLStreamReader

Returns:

The XMLStreamReader that expresses the JDOM Document.
buildReader
(Document
The Document to represent.
doc
,
Format
The Format to apply to the document.
format
)

Return an implementation of an XMLStreamReader that represents a JDOM Document.

Method Detail

buildReaderback to summary
public XMLStreamReader buildReader(Document doc, Format format)

Return an implementation of an XMLStreamReader that represents a JDOM Document.

Parameters
doc:Document

The Document to represent.

format:Format

The Format to apply to the document.

Returns:XMLStreamReader

The XMLStreamReader that expresses the JDOM Document.