Package htsjdk.samtools.cram.structure
Class SliceBlocksReadStreams
- java.lang.Object
-
- htsjdk.samtools.cram.structure.SliceBlocksReadStreams
-
public class SliceBlocksReadStreams extends Object
Provides a layer over aSliceBlocksobject 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
Constructors Constructor Description SliceBlocksReadStreams(SliceBlocks sliceBlocks, CompressorCache compressorCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitInputStreamgetCoreBlockInputStream()Get theBitInputStreamfor thisSliceBlockscore blockByteArrayInputStreamgetExternalInputStream(Integer contentID)Get the ByteArrayInputStream for the given contentID.
-
-
-
Constructor Detail
-
SliceBlocksReadStreams
public SliceBlocksReadStreams(SliceBlocks sliceBlocks, CompressorCache compressorCache)
- Parameters:
sliceBlocks-SliceBlocksthat have been populated from a CRAM stream
-
-
Method Detail
-
getCoreBlockInputStream
public BitInputStream getCoreBlockInputStream()
Get theBitInputStreamfor thisSliceBlockscore block- Returns:
BitInputStreamfor the core block
-
getExternalInputStream
public ByteArrayInputStream getExternalInputStream(Integer contentID)
Get the ByteArrayInputStream for the given contentID.- Parameters:
contentID-- Returns:
- ByteArrayInputStream for contentID
-
-