Class AnnotatedXMLStreamReader

java.lang.Object
javax.xml.stream.util.StreamReaderDelegate
org.dellroad.stuff.xml.AnnotatedXMLStreamReader
All Implemented Interfaces:
XMLStreamConstants, XMLStreamReader
Direct Known Subclasses:
UpdatesXMLStreamReader

public abstract class AnnotatedXMLStreamReader extends StreamReaderDelegate
XMLStreamReader that reads and removes an initial annotation element from an XML document. The annotation element, if present, must be the first element inside the top-level document element. When the annotation element is encountered, readAnnotationElement() will be invoked.

This class can be used in combination with AnnotatedXMLStreamWriter to transparently annotate XML documents.

See Also: