Package org.snpeff.fileIterator
Class BinSeqFileIterator<T extends BinarySequence>
- java.lang.Object
-
- org.snpeff.fileIterator.BinSeqFileIterator<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
java.lang.Iterable<T>,java.util.Iterator<T>
- Direct Known Subclasses:
DnaSeqFileIterator,DnaSeqIdFileIterator,DnaSeqPeFileIterator
public class BinSeqFileIterator<T extends BinarySequence> extends java.lang.Object implements java.lang.Iterable<T>, java.util.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 Constructor Description BinSeqFileIterator(java.lang.String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close file (if not already done)booleanhasNext()java.util.Iterator<T>iterator()Tnext()voidremove()
-
-
-
Method Detail
-
close
public void close()
Close file (if not already done)
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T extends BinarySequence>
-
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<T extends BinarySequence>
-
next
public T next()
- Specified by:
nextin interfacejava.util.Iterator<T extends BinarySequence>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<T extends BinarySequence>
-
-