public interface SymbolReader
Modifier and Type | Method and Description |
---|---|
Alphabet |
getAlphabet()
Find the alphabet of all symbols which may be returned by
this SymbolReader.
|
boolean |
hasMoreSymbols()
Determine if there are more symbols left to read in this stream.
|
Symbol |
readSymbol()
Return a single symbol from the stream.
|
int |
readSymbols(Symbol[] buffer,
int start,
int length)
Read one or more symbols from the stream.
|
Alphabet getAlphabet()
Symbol readSymbol() throws IOException, IllegalSymbolException
IOException
- if an error occured on the stream, or the
end of the stream has already been reached.IllegalSymbolException
- if a parse error occured.int readSymbols(Symbol[] buffer, int start, int length) throws IOException, IllegalSymbolException
buffer
- the destination for read symbols.start
- a start offset within the buffer.length
- the maximum number of Symbols to read.IOException
- if an error occured on the stream, or the
end of the stream has already been reached.IllegalSymbolException
- if a parse error occured.boolean hasMoreSymbols()
Copyright © 2014 BioJava. All rights reserved.