public abstract class AbstractMetaXMLReader extends java.lang.Object
Each created reader instance will create their own start and end document events. If multiple instances are used for the same literal meta subsequence this can lead to multiple start and end document events being generated. However, start document events are only created if no literal content event was consumed yet.
Constructor and Description |
---|
AbstractMetaXMLReader(XMLReaderStreamDataProvider<?> streamDataProvider) |
Modifier and Type | Method and Description |
---|---|
void |
close()
This method has no effect in this reader.
|
protected javax.xml.stream.XMLEventFactory |
getEventFactory() |
protected JPhyloIOXMLEventReader |
getJPhyloIOEventReader() |
java.lang.Object |
getProperty(java.lang.String name) |
protected XMLReaderStreamDataProvider<?> |
getStreamDataProvider() |
boolean |
hasNext() |
protected boolean |
isEndDocumentFired() |
protected boolean |
isEndReached() |
protected boolean |
isStartDocumentFired() |
protected javax.xml.stream.events.XMLEvent |
obtainXMLContentEvent(JPhyloIOEvent jPhyloIOEvent) |
protected void |
setEndDocumentFired(boolean endDocumentFired) |
protected void |
setEndReached() |
protected void |
setStartDocumentFired(boolean startDocumentFired) |
public AbstractMetaXMLReader(XMLReaderStreamDataProvider<?> streamDataProvider)
protected void setEndReached()
protected JPhyloIOXMLEventReader getJPhyloIOEventReader()
protected XMLReaderStreamDataProvider<?> getStreamDataProvider()
protected javax.xml.stream.XMLEventFactory getEventFactory()
protected boolean isEndReached()
protected boolean isStartDocumentFired()
protected void setStartDocumentFired(boolean startDocumentFired)
protected boolean isEndDocumentFired()
protected void setEndDocumentFired(boolean endDocumentFired)
public void close() throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public boolean hasNext()
public java.lang.Object getProperty(java.lang.String name) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected javax.xml.stream.events.XMLEvent obtainXMLContentEvent(JPhyloIOEvent jPhyloIOEvent) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException