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
BioExceptionpublic RichSequence nextRichSequence() throws java.util.NoSuchElementException, BioException
nextRichSequence in interface RichSequenceIteratorjava.util.NoSuchElementExceptionBioExceptionpublic boolean hasNext()
BioEntryIteratorhasNext in interface SequenceIteratorhasNext in interface BioEntryIteratorpublic BioEntry nextBioEntry() throws java.util.NoSuchElementException, BioException
nextBioEntry in interface BioEntryIteratorjava.util.NoSuchElementExceptionBioExceptionpublic Sequence nextSequence() throws java.util.NoSuchElementException, BioException
SequenceIteratornextSequence in interface SequenceIteratorjava.util.NoSuchElementException - if you call nextSequence when hasNext
returns falseBioException - if for any reason the sequence could not be retrieved