java: fix direct conversion API

This commit is contained in:
frsyuki 2010-05-20 05:44:44 +09:00
parent 979ff80982
commit 135a9f5586
16 changed files with 356 additions and 264 deletions

View file

@ -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();
}