Package org.rcsb.cif.binary.codec
Class Codec
- java.lang.Object
-
- org.rcsb.cif.binary.codec.Codec
-
public class Codec extends Object
A library of codec implementations and provider to codec-specific constants such as encoder name, version, and minimal version of the data to decode.
-
-
Field Summary
Fields Modifier and Type Field Description static ByteArrayCodecBYTE_ARRAY_CODECstatic StringCODEC_NAMEstatic DeltaCodecDELTA_CODECstatic FixedPointCodecFIXED_POINT_CODECstatic IntegerPackingCodecINTEGER_PACKING_CODECstatic IntervalQuantizationCodecINTERVAL_QUANTIZATION_CODECstatic MessagePackCodecMESSAGE_PACK_CODECstatic StringMIN_VERSIONstatic RunLengthCodecRUN_LENGTH_CODECstatic StringArrayCodecSTRING_ARRAY_CODECstatic StringVERSION
-
Constructor Summary
Constructors Constructor Description Codec()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Objectdecode(Map<String,Object> encodedData)Decode an instance ofEncodedDataby traversing its encoding chain until the original data is restored.static EncodedData<?>decode(EncodedData<?> encodedData)Decode an instance ofEncodedDataby traversing its encoding chain until the original data is restored.
-
-
-
Field Detail
-
CODEC_NAME
public static final String CODEC_NAME
- See Also:
- Constant Field Values
-
VERSION
public static final String VERSION
- See Also:
- Constant Field Values
-
MIN_VERSION
public static final String MIN_VERSION
- See Also:
- Constant Field Values
-
BYTE_ARRAY_CODEC
public static final ByteArrayCodec BYTE_ARRAY_CODEC
-
DELTA_CODEC
public static final DeltaCodec DELTA_CODEC
-
FIXED_POINT_CODEC
public static final FixedPointCodec FIXED_POINT_CODEC
-
INTEGER_PACKING_CODEC
public static final IntegerPackingCodec INTEGER_PACKING_CODEC
-
INTERVAL_QUANTIZATION_CODEC
public static final IntervalQuantizationCodec INTERVAL_QUANTIZATION_CODEC
-
RUN_LENGTH_CODEC
public static final RunLengthCodec RUN_LENGTH_CODEC
-
STRING_ARRAY_CODEC
public static final StringArrayCodec STRING_ARRAY_CODEC
-
MESSAGE_PACK_CODEC
public static final MessagePackCodec MESSAGE_PACK_CODEC
-
-
Method Detail
-
decode
public static EncodedData<?> decode(EncodedData<?> encodedData)
Decode an instance ofEncodedDataby traversing its encoding chain until the original data is restored.- Parameters:
encodedData- the data to decode- Returns:
- the decoded data
-
decode
public static Object decode(Map<String,Object> encodedData)
Decode an instance ofEncodedDataby traversing its encoding chain until the original data is restored.- Parameters:
encodedData- the map of data to decode- Returns:
- the decoded data
-
-