public class MetaXMLEventReader extends AbstractMetaXMLReader implements XMLEventReader
LiteralMetadataContentEvent
s using an XMLEventReader
.
Instances of this class should not (and cannot) be created directly in application code, but
JPhyloIOXMLEventReader.createMetaXMLEventReader()
should be used instead.
Since it is registered which events are read from the event stream, it is possible to read only a part of the
custom XML tree with this reader, while the rest is read using the original JPhyloIOEventReader
.
Constructor and Description |
---|
MetaXMLEventReader(XMLReaderStreamDataProvider<?> streamDataProvider)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
String |
getElementText() |
Object |
next() |
XMLEvent |
nextEvent() |
XMLEvent |
nextTag() |
XMLEvent |
peek() |
void |
remove() |
close, getEventFactory, getJPhyloIOEventReader, getProperty, getStreamDataProvider, hasNext, isEndDocumentFired, isEndReached, isStartDocumentFired, obtainXMLContentEvent, setEndDocumentFired, setEndReached, setStartDocumentFired
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getProperty, hasNext
forEachRemaining
public MetaXMLEventReader(XMLReaderStreamDataProvider<?> streamDataProvider)
JPhyloIOXMLEventReader.createMetaXMLEventReader()
instead.streamDataProvider
- the stream data provider of the underlying JPhyloIOEventReader
public Object next() throws NoSuchElementException
next
in interface Iterator
NoSuchElementException
public void remove() throws UnsupportedOperationException
remove
in interface Iterator
UnsupportedOperationException
public String getElementText() throws XMLStreamException
getElementText
in interface XMLEventReader
XMLStreamException
public XMLEvent nextEvent() throws XMLStreamException
nextEvent
in interface XMLEventReader
XMLStreamException
public XMLEvent nextTag() throws XMLStreamException
nextTag
in interface XMLEventReader
XMLStreamException
public XMLEvent peek() throws XMLStreamException
peek
in interface XMLEventReader
XMLStreamException