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(CountingInputStream countingStream)
Consume the entirety of the next container from the stream, but retain only the header.
|
close, getCramHeader, hasNext, next, remove
public CramContainerHeaderIterator(java.io.InputStream inputStream)
protected Container containerFromStream(CountingInputStream countingStream)
containerFromStream
in class CramContainerIterator
countingStream
- the CountingInputStream
to read fromCramContainerIterator.containerFromStream(CountingInputStream)