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
ConstructorsConstructorDescriptionSliceBlocksReadStreams(SliceBlocks sliceBlocks, CompressorCache compressorCache) -
Method Summary
Modifier and TypeMethodDescriptionGet theBitInputStreamfor thisSliceBlockscore blockgetExternalInputStream(Integer contentID) Get the ByteArrayInputStream for the given contentID.
-
Constructor Details
-
SliceBlocksReadStreams
- Parameters:
sliceBlocks-SliceBlocksthat have been populated from a CRAM stream
-
-
Method Details
-
getCoreBlockInputStream
Get theBitInputStreamfor thisSliceBlockscore block- Returns:
BitInputStreamfor the core block
-
getExternalInputStream
Get the ByteArrayInputStream for the given contentID.- Parameters:
contentID-- Returns:
- ByteArrayInputStream for contentID
-