Package htsjdk.samtools.cram.encoding
Interface Encoding<T>
-
- Type Parameters:
T- data series type
- All Known Implementing Classes:
BetaIntegerEncoding,ByteArrayLenEncoding,ByteArrayStopEncoding,ExternalByteArrayEncoding,ExternalByteEncoding,ExternalIntegerEncoding,ExternalLongEncoding,GammaIntegerEncoding,GolombIntegerEncoding,GolombLongEncoding,GolombRiceIntegerEncoding,HuffmanByteEncoding,HuffmanIntegerEncoding,NullEncoding,SubexponentialIntegerEncoding
public interface Encoding<T>An interface to describe how a data series is encoded. It also has methods to serialize/deserialize to/from byte array and a method to construct aBitCodecinstance.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitCodec<T>buildCodec(Map<Integer,InputStream> inputMap, Map<Integer,ExposedByteArrayOutputStream> outputMap)voidfromByteArray(byte[] data)EncodingIDid()byte[]toByteArray()
-
-
-
Method Detail
-
id
EncodingID id()
-
toByteArray
byte[] toByteArray()
-
fromByteArray
void fromByteArray(byte[] data)
-
buildCodec
BitCodec<T> buildCodec(Map<Integer,InputStream> inputMap, Map<Integer,ExposedByteArrayOutputStream> outputMap)
-
-