mirror of
https://github.com/msgpack/msgpack-python.git
synced 2026-02-08 10:49:59 +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
|
|
@ -58,7 +58,7 @@ public class MessagePackIndirectSerializer implements ObjectSerializer<MediaCont
|
|||
}
|
||||
|
||||
public MediaContent deserialize(byte[] array) throws Exception {
|
||||
UnbufferedUnpacker pac = new UnbufferedUnpacker();
|
||||
Unpacker pac = new Unpacker();
|
||||
pac.execute(array);
|
||||
Object obj = pac.getData();
|
||||
return (MediaContent)MediaContent.getSchema().convert(obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue