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