public class HashedFastaIterator extends java.lang.Object implements RichSequenceIterator
Constructor and Description |
---|
HashedFastaIterator(java.io.BufferedInputStream is,
Alphabet alpha,
Namespace ns) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns whether there are more sequences to iterate over.
|
BioEntry |
nextBioEntry() |
RichSequence |
nextRichSequence() |
Sequence |
nextSequence()
Returns the next sequence in the iterator.
|
public HashedFastaIterator(java.io.BufferedInputStream is, Alphabet alpha, Namespace ns) throws BioException
BioException
public RichSequence nextRichSequence() throws java.util.NoSuchElementException, BioException
nextRichSequence
in interface RichSequenceIterator
java.util.NoSuchElementException
BioException
public boolean hasNext()
BioEntryIterator
hasNext
in interface SequenceIterator
hasNext
in interface BioEntryIterator
public BioEntry nextBioEntry() throws java.util.NoSuchElementException, BioException
nextBioEntry
in interface BioEntryIterator
java.util.NoSuchElementException
BioException
public Sequence nextSequence() throws java.util.NoSuchElementException, BioException
SequenceIterator
nextSequence
in interface SequenceIterator
java.util.NoSuchElementException
- if you call nextSequence when hasNext
returns falseBioException
- if for any reason the sequence could not be retrieved