public class SliceBlocksWriteStreams
extends java.lang.Object
SliceBlocks object and acts as a bridge between the DataSeries codecs
and their underlying blocks when writing a CRAM stream by presenting a bit (core) or byte (external) stream
for each block.| Constructor and Description |
|---|
SliceBlocksWriteStreams(CompressionHeader compressionHeader) |
| Modifier and Type | Method and Description |
|---|---|
SliceBlocks |
flushStreamsToBlocks()
Compress and write each each stream to a corresponding Block (note that this does not write
the blocks themselves to a container output stream - that can't happen until the slice is aggregated
into a container.
|
BitOutputStream |
getCoreOutputStream() |
java.io.ByteArrayOutputStream |
getExternalOutputStream(java.lang.Integer contentID)
Get the ByteArrayOutputStream corresponding to the requested contentID
|
public SliceBlocksWriteStreams(CompressionHeader compressionHeader)
compressionHeader - CompressionHeader for the container containing the slicepublic BitOutputStream getCoreOutputStream()
BitOutputStream for the core blockpublic java.io.ByteArrayOutputStream getExternalOutputStream(java.lang.Integer contentID)
contentID - ID of content being requestedpublic SliceBlocks flushStreamsToBlocks()