Package org.rcsb.cif.binary.codec
Class MessagePackCodec
- java.lang.Object
-
- org.rcsb.cif.binary.codec.MessagePackCodec
-
public class MessagePackCodec extends Object
Decodes and encodes MessagePack data. Exists isolated from other codec implementations for simplicity and due to subtle differences such as byte order in MessagePack being big-endian as opposed to binary CIF codecs which require little-endian order. Regarding primitive number data types, onlyintanddoubleare considered.
-
-
Constructor Summary
Constructors Constructor Description MessagePackCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>decode(InputStream inputStream)byte[]encode(Map<String,Object> input)
-
-
-
Method Detail
-
decode
public Map<String,Object> decode(InputStream inputStream) throws IOException
- Throws:
IOException
-
-