Top Description Inners Constructors Methods
org.jdom2.output.support

public Class AbstractStAXStreamReaderProcessor

extends Object
implements StAXStreamReaderProcessor
Class Inheritance
All Implemented Interfaces
org.jdom2.output.support.StAXStreamReaderProcessor
Known Direct Subclasses
org.jdom2.output.StAXStreamReader.DefaultStAXAsStreamProcessor
Imports
javax.xml.stream.XMLStreamReader, org.jdom2.Document, org.jdom2.output.Format

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public XMLStreamReader
buildReader(final Document
The Document to represent.
doc
,
final Format
The Format to apply to the document.
format
)

Implements org.jdom2.output.support.StAXStreamReaderProcessor.buildReader.

Return an implementation of an XMLStreamReader that represents a JDOM Document.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractStAXStreamReaderProcessorback to summary
public AbstractStAXStreamReaderProcessor()

Method Detail

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

Implements org.jdom2.output.support.StAXStreamReaderProcessor.buildReader.

Doc from org.jdom2.output.support.StAXStreamReaderProcessor.buildReader.

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.

Annotations
@Override
org.jdom2.output.support back to summary

private final Class AbstractStAXStreamReaderProcessor.DefaultXMLStreamReader

extends AbstractStAXStreamReader
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
DefaultXMLStreamReader(final Document doc, final Format format)

Method Summary

Inherited from org.jdom2.output.support.AbstractStAXStreamReader:
closegetAttributeCountgetAttributeLocalNamegetAttributeNamegetAttributeNamespacegetAttributePrefixgetAttributeTypegetAttributeValuegetAttributeValuegetCharacterEncodingSchemegetElementTextgetEncodinggetEventTypegetLocalNamegetLocationgetNamegetNamespaceContextgetNamespaceCountgetNamespacePrefixgetNamespaceURIgetNamespaceURIgetNamespaceURIgetPIDatagetPITargetgetPrefixgetPropertygetTextgetTextCharactersgetTextCharactersgetTextLengthgetTextStartgetVersionhasNamehasNexthasTextisAttributeSpecifiedisCharactersisEndElementisStandaloneisStartElementisWhiteSpacenextnextTagrequirestandaloneSet

Constructor Detail

DefaultXMLStreamReaderback to summary
public DefaultXMLStreamReader(final Document doc, final Format format)