mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-07 18:29:53 +00:00
java: fix direct conversion API
This commit is contained in:
parent
979ff80982
commit
135a9f5586
16 changed files with 356 additions and 264 deletions
|
|
@ -62,7 +62,7 @@ public class MessagePackGenericSerializer implements ObjectSerializer<Object>
|
|||
}
|
||||
|
||||
public Object deserialize(byte[] array) throws Exception {
|
||||
UnbufferedUnpacker pac = new UnbufferedUnpacker().useSchema(MEDIA_CONTENT_SCHEMA);
|
||||
Unpacker pac = new Unpacker().useSchema(MEDIA_CONTENT_SCHEMA);
|
||||
pac.execute(array);
|
||||
return (Object)pac.getData();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue