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 CramSpanContainerIteratorfromFileSpan(SeekableStream seekableStream, long[] coordinates) booleanhasNext()next()voidremove()Methods inherited from class htsjdk.samtools.cram.build.CramContainerIterator
close, containerFromStream, getCramHeader, getSamFileHeaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Method Details
-
fromFileSpan
public static CramSpanContainerIterator fromFileSpan(SeekableStream seekableStream, long[] coordinates) -
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<Container>- Overrides:
hasNextin classCramContainerIterator
-
next
- Specified by:
nextin interfaceIterator<Container>- Overrides:
nextin classCramContainerIterator
-
remove
public void remove()- Specified by:
removein interfaceIterator<Container>- Overrides:
removein classCramContainerIterator
-