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, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods 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:
hasNextin interfaceIterator<T extends BinarySequence>
-
iterator
- Specified by:
iteratorin interfaceIterable<T extends BinarySequence>
-
next
- Specified by:
nextin interfaceIterator<T extends BinarySequence>
-
remove
public void remove()- Specified by:
removein interfaceIterator<T extends BinarySequence>
-