uk.ac.sanger.npg.illumina.file.reader
Class CLocsFileReader
java.lang.Object
uk.ac.sanger.npg.illumina.file.reader.IlluminaFileReader
uk.ac.sanger.npg.illumina.file.reader.PositionFileReader
uk.ac.sanger.npg.illumina.file.reader.CLocsFileReader
- All Implemented Interfaces:
- java.io.Closeable, java.util.Iterator<java.lang.Object>
public class CLocsFileReader
- extends PositionFileReader
This class is a reader of a clocs file
Constructor Summary |
CLocsFileReader(java.lang.String cLocsFileName)
Constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLocsFileReader
public CLocsFileReader(java.lang.String cLocsFileName)
throws java.lang.Exception
- Constructor
- Parameters:
cLocsFileName
- clocs file name
- Throws:
java.lang.Exception
hasNext
public boolean hasNext()
- this method should mean hasNextBlock
Maybe no any cluster available in the rest of blocks
- Specified by:
hasNext
in interface java.util.Iterator<java.lang.Object>
- Overrides:
hasNext
in class IlluminaFileReader
- Returns:
- true if there is next cluster
but the next() method will return null even if this method return true when the rest of blocks have no cluster there
next
public PositionFileReader.Position next()
- Specified by:
next
in interface java.util.Iterator<java.lang.Object>
- Specified by:
next
in class PositionFileReader
- Returns:
- [x, y]
getTotalBlocks
public int getTotalBlocks()
- Returns:
- the totalBlocks
getCurrentBlock
public int getCurrentBlock()
- Returns:
- the currentBlock
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Parameters:
args
-
- Throws:
java.lang.Exception