Package htsjdk.samtools.cram.build
Class CramSpanContainerIterator
- java.lang.Object
-
- htsjdk.samtools.cram.build.CramSpanContainerIterator
-
public class CramSpanContainerIterator extends Object implements Iterator<Container>
An iterator of CRAM containers read from locations inSeekableStream
. The locations are specified with pairs of coordinates, they are basically file pointers as returned for example bySamReader.Indexing.getFilePointerSpanningReads()
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CramSpanContainerIterator
fromFileSpan(SeekableStream seekableStream, long[] coordinates)
CramHeader
getCramHeader()
long
getFirstContainerOffset()
boolean
hasNext()
Container
next()
void
remove()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Method Detail
-
fromFileSpan
public static CramSpanContainerIterator fromFileSpan(SeekableStream seekableStream, long[] coordinates) throws IOException
- Throws:
IOException
-
getCramHeader
public CramHeader getCramHeader()
-
getFirstContainerOffset
public long getFirstContainerOffset()
-
-