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
BioException
public RichSequence nextRichSequence() throws NoSuchElementException, BioException
nextRichSequence
in interface RichSequenceIterator
NoSuchElementException
BioException
public boolean hasNext()
BioEntryIterator
hasNext
in interface SequenceIterator
hasNext
in interface BioEntryIterator
public BioEntry nextBioEntry() throws NoSuchElementException, BioException
nextBioEntry
in interface BioEntryIterator
NoSuchElementException
BioException
public Sequence nextSequence() throws NoSuchElementException, BioException
SequenceIterator
nextSequence
in interface SequenceIterator
NoSuchElementException
- if you call nextSequence when hasNext
returns falseBioException
- if for any reason the sequence could not be retrievedCopyright © 2014 BioJava. All rights reserved.