public class ExternalByteEncoding extends ExternalEncoding<java.lang.Byte>
externalBlockContentId
Constructor and Description |
---|
ExternalByteEncoding(int externalBlockContentId) |
Modifier and Type | Method and Description |
---|---|
CRAMCodec<java.lang.Byte> |
buildCodec(BitInputStream coreBlockInputStream,
BitOutputStream coreBlockOutputStream,
java.util.Map<java.lang.Integer,java.io.ByteArrayInputStream> externalBlockInputMap,
java.util.Map<java.lang.Integer,java.io.ByteArrayOutputStream> externalBlockOutputMap)
Instantiate the codec represented by this encoding by supplying it with the appropriate streams
|
static ExternalByteEncoding |
fromParams(byte[] params) |
toByteArray
buildReadCodec, buildWriteCodec, id, toParam
public static ExternalByteEncoding fromParams(byte[] params)
public CRAMCodec<java.lang.Byte> buildCodec(BitInputStream coreBlockInputStream, BitOutputStream coreBlockOutputStream, java.util.Map<java.lang.Integer,java.io.ByteArrayInputStream> externalBlockInputMap, java.util.Map<java.lang.Integer,java.io.ByteArrayOutputStream> externalBlockOutputMap)
CRAMEncoding
buildCodec
in class CRAMEncoding<java.lang.Byte>
coreBlockInputStream
- the core block bit stream a CoreCodec
will read fromcoreBlockOutputStream
- the core block bit stream a CoreCodec
will write toexternalBlockInputMap
- the external block byte stream a ExternalCodec
will read fromexternalBlockOutputMap
- the external block byte stream a ExternalCodec
will write to