MessagePack Homepage
test successed with python.
- supports int, long, String, Boolean, array, hashtable
- able to custom array and hashtable(implements IDictPicker or IListPicker)
- Modify the package name(default: org.chenye.andfree.msgpack)
- Implements data structures(list, dict)
- Configure MsgPackUnpack
//structure
class Line implements IDictPicker, IListPicker{
}
//configure
MsgPackUnpack.setGetDict(new IGetDictPicker() {
@Override
public IDictPicker ret() {
// TODO Auto-generated method stub
return new Line();
}
});
MsgPackUnpack.setGetList(new IGetListPicker() {
@Override
public IListPicker ret() {
// TODO Auto-generated method stub
return new Line();
}
});
- pack or unpack
ByteBuffer bb = MsgPack.pack(Object obj);
Object obj = MsgPack.unpack(byte[] bytes);