Package htsjdk.samtools.cram.build
Class CramSpanContainerIterator
java.lang.Object
htsjdk.samtools.cram.build.CramContainerIterator
htsjdk.samtools.cram.build.CramSpanContainerIterator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<Container>
An iterator of CRAM containers read from locations in a
SeekableStream
.
The locations are specified with pairs of coordinates, and are basically file pointers as returned for example
by SamReader.Indexing.getFilePointerSpanningReads()
-
Method Summary
Modifier and TypeMethodDescriptionstatic CramSpanContainerIterator
fromFileSpan
(SeekableStream seekableStream, long[] coordinates) boolean
hasNext()
next()
void
remove()
Methods inherited from class htsjdk.samtools.cram.build.CramContainerIterator
close, containerFromStream, getCramHeader, getSamFileHeader
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 Details
-
fromFileSpan
public static CramSpanContainerIterator fromFileSpan(SeekableStream seekableStream, long[] coordinates) -
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<Container>
- Overrides:
hasNext
in classCramContainerIterator
-
next
- Specified by:
next
in interfaceIterator<Container>
- Overrides:
next
in classCramContainerIterator
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<Container>
- Overrides:
remove
in classCramContainerIterator
-