public class EncodingFactory
extends java.lang.Object
CRAMEncoding
for a given DataSeriesType and
CRAMEncoding.
Also useful to hide encoding implementations.| Constructor and Description |
|---|
EncodingFactory() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CRAMEncoding<T> |
createEncoding(DataSeriesType valueType,
EncodingID id,
byte[] params)
Create an encoding for the data series type and encoding id.
|
public static <T> CRAMEncoding<T> createEncoding(DataSeriesType valueType, EncodingID id, byte[] params)
T - encoding object type, like Integer or String.valueType - data type of the values to be produced/consumed by the encodingid - encoding id used for data serializationparams - encoding initialization values