Class MsgPack


public class MsgPack extends StreamMarshaller
A pairing of a MsgPackSerializer and MsgPackParser into a single class with convenience read/write methods.

The general idea is to combine a single serializer and parser inside a simplified API for reading and writing POJOs.

Examples:

// Using instance. MsgPack msgPack = new MsgPack(); MyPojo myPojo = msgPack.read(bytes, MyPojo.class); byte[] bytes = msgPack.write(myPojo);

// Using DEFAULT instance. MyPojo myPojo = MsgPack.DEFAULT.read(bytes, MyPojo.class); byte[] bytes = MsgPack.DEFAULT.write(myPojo);

See Also: