Package htsjdk.samtools.cram.structure
Class SliceBlocksReadStreams
java.lang.Object
htsjdk.samtools.cram.structure.SliceBlocksReadStreams
Provides a layer over a
SliceBlocks
object and acts as a bridge between the DataSeries codecs
and their underlying blocks when reading a CRAM stream by presenting a bit (core) or byte (external) stream
for each block.-
Constructor Summary
ConstructorDescriptionSliceBlocksReadStreams
(SliceBlocks sliceBlocks, CompressorCache compressorCache) -
Method Summary
Modifier and TypeMethodDescriptionGet theBitInputStream
for thisSliceBlocks
core blockgetExternalInputStream
(Integer contentID) Get the ByteArrayInputStream for the given contentID.
-
Constructor Details
-
SliceBlocksReadStreams
- Parameters:
sliceBlocks
-SliceBlocks
that have been populated from a CRAM stream
-
-
Method Details
-
getCoreBlockInputStream
Get theBitInputStream
for thisSliceBlocks
core block- Returns:
BitInputStream
for the core block
-
getExternalInputStream
Get the ByteArrayInputStream for the given contentID.- Parameters:
contentID
-- Returns:
- ByteArrayInputStream for contentID
-