public interface NexusCommandEventReader
Implementing classes must offer a constructor with a single argument of the type NexusReaderStreamDataProvider
to take information about the reader and the Nexus document.
A new instance should be created for parsing each command. The reader should be positioned at the first character
behind the terminal semicolon after the implementing instance parsed all data and #isAllDataProcessed()
should return true
then.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandName()
Returns the name of the Nexus command that can be parsed by this instance.
|
java.util.Collection<java.lang.String> |
getValidBlocks()
Returns a collection with the names of the Nexus blocks the command parsed by the implementing
class may be contained in.
|
boolean |
readNextEvent()
Adds at least one additional event (generated from the current Nexus command) to the event queue.
|
java.lang.String getCommandName()
java.util.Collection<java.lang.String> getValidBlocks()
An empty collection returned here indicates that this reader is valid in all Nexus blocks.
boolean readNextEvent() throws java.io.IOException
true
if at least one additional event was added or false
if the underlying Nexus
command was already completely processed an no more events can generated from itjava.io.IOException