Package org.snpeff.fileIterator
Class BinSeqFileIterator<T extends BinarySequence>
java.lang.Object
org.snpeff.fileIterator.BinSeqFileIterator<T>
- Type Parameters:
T
-
- Direct Known Subclasses:
DnaSeqFileIterator
,DnaSeqIdFileIterator
,DnaSeqPeFileIterator
public class BinSeqFileIterator<T extends BinarySequence>
extends Object
implements Iterable<T>, Iterator<T>
Reads all sequences from a file
Warning: You should always call "close()" at the end of the iteration.
- Author:
- pcingola
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
BinSeqFileIterator
-
-
Method Details
-
close
public void close()Close file (if not already done) -
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<T extends BinarySequence>
-
iterator
- Specified by:
iterator
in interfaceIterable<T extends BinarySequence>
-
next
- Specified by:
next
in interfaceIterator<T extends BinarySequence>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<T extends BinarySequence>
-