public class HashedFastaIterator extends Object implements RichSequenceIterator
| Constructor and Description |
|---|
HashedFastaIterator(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(BufferedInputStream is, Alphabet alpha, Namespace ns) throws BioException
BioExceptionpublic RichSequence nextRichSequence() throws NoSuchElementException, BioException
nextRichSequence in interface RichSequenceIteratorNoSuchElementExceptionBioExceptionpublic boolean hasNext()
BioEntryIteratorhasNext in interface SequenceIteratorhasNext in interface BioEntryIteratorpublic BioEntry nextBioEntry() throws NoSuchElementException, BioException
nextBioEntry in interface BioEntryIteratorNoSuchElementExceptionBioExceptionpublic Sequence nextSequence() throws NoSuchElementException, BioException
SequenceIteratornextSequence in interface SequenceIteratorNoSuchElementException - if you call nextSequence when hasNext
returns falseBioException - if for any reason the sequence could not be retrievedCopyright © 2020 BioJava. All rights reserved.