public class ExternalIntegerEncoding extends CRAMEncoding<java.lang.Integer>
Constructor and Description |
---|
ExternalIntegerEncoding(int externalBlockContentId) |
Modifier and Type | Method and Description |
---|---|
CRAMCodec<java.lang.Integer> |
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 ExternalIntegerEncoding |
fromParams(byte[] params) |
byte[] |
toByteArray()
Subclasses but have a defined serialization of their parameters
|
buildReadCodec, buildWriteCodec, id, toParam
public ExternalIntegerEncoding(int externalBlockContentId)
public static ExternalIntegerEncoding fromParams(byte[] params)
public byte[] toByteArray()
CRAMEncoding
toByteArray
in class CRAMEncoding<java.lang.Integer>
public CRAMCodec<java.lang.Integer> 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.Integer>
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