Package org.rcsb.cif.binary.codec
Class BinaryCifCodec
java.lang.Object
org.rcsb.cif.binary.codec.BinaryCifCodec
public class BinaryCifCodec 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 StringCODEC_NAMEstatic booleanIS_NATIVE_LITTLE_ENDIANstatic StringMIN_VERSIONstatic StringVERSION -
Constructor Summary
Constructors Constructor Description BinaryCifCodec() -
Method Summary
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<?> data)Request decoding of thisEncodedDatainstance.
-
Field Details
-
CODEC_NAME
- See Also:
- Constant Field Values
-
VERSION
- See Also:
- Constant Field Values
-
MIN_VERSION
- See Also:
- Constant Field Values
-
IS_NATIVE_LITTLE_ENDIAN
public static final boolean IS_NATIVE_LITTLE_ENDIAN
-
-
Constructor Details
-
BinaryCifCodec
public BinaryCifCodec()
-
-
Method Details
-
decode
Request decoding of thisEncodedDatainstance. Will automatically resolve its decoding chain, starting from a ByteArray until 'raw' data represented by Int32Array, Float64Array, or StringArray classes is achieved which is then ready to use.- Parameters:
data- what to decode- Returns:
- the decoded data
-
decode
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
-