Class 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
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractStAXStreamReaderProcessor

        public AbstractStAXStreamReaderProcessor()
    • 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 interface StAXStreamReaderProcessor
        Parameters:
        doc - The Document to represent.
        format - The Format to apply to the document.
        Returns:
        The XMLStreamReader that expresses the JDOM Document.