public class CramContainerHeaderIterator extends CramContainerIterator
CramContainerIterator only
the header of each container is read, rather than the whole stream. As a result, the container block
data is *not* populated, including the compression header block and slices.
This class is useful when you are not interested in the contents of containers, for example when indexing container
start positions.| Constructor and Description |
|---|
CramContainerHeaderIterator(java.io.InputStream inputStream) |
| Modifier and Type | Method and Description |
|---|---|
protected Container |
containerFromStream(Version cramVersion,
CountingInputStream countingStream)
Consume the entirety of the next container from the stream.
|
close, getCramHeader, hasNext, next, removepublic CramContainerHeaderIterator(java.io.InputStream inputStream)
throws java.io.IOException
java.io.IOExceptionprotected Container containerFromStream(Version cramVersion, CountingInputStream countingStream) throws java.io.IOException
CramContainerIteratorcontainerFromStream in class CramContainerIteratorjava.io.IOException