public class MetaXMLEventReader extends AbstractMetaXMLReader implements javax.xml.stream.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 |
---|---|
java.lang.String |
getElementText() |
java.lang.Object |
next() |
javax.xml.stream.events.XMLEvent |
nextEvent() |
javax.xml.stream.events.XMLEvent |
nextTag() |
javax.xml.stream.events.XMLEvent |
peek() |
void |
remove() |
close, getEventFactory, getJPhyloIOEventReader, getProperty, getStreamDataProvider, hasNext, isEndDocumentFired, isEndReached, isStartDocumentFired, obtainXMLContentEvent, setEndDocumentFired, setEndReached, setStartDocumentFired
public MetaXMLEventReader(XMLReaderStreamDataProvider<?> streamDataProvider)
JPhyloIOXMLEventReader.createMetaXMLEventReader()
instead.streamDataProvider
- the stream data provider of the underlying JPhyloIOEventReader
public java.lang.Object next() throws java.util.NoSuchElementException
next
in interface java.util.Iterator
java.util.NoSuchElementException
public void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator
java.lang.UnsupportedOperationException
public java.lang.String getElementText() throws javax.xml.stream.XMLStreamException
getElementText
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
public javax.xml.stream.events.XMLEvent nextEvent() throws javax.xml.stream.XMLStreamException
nextEvent
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
public javax.xml.stream.events.XMLEvent nextTag() throws javax.xml.stream.XMLStreamException
nextTag
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException
public javax.xml.stream.events.XMLEvent peek() throws javax.xml.stream.XMLStreamException
peek
in interface javax.xml.stream.XMLEventReader
javax.xml.stream.XMLStreamException