예제 #1
0
 @Override
 public ByteBuffer writeObject(Object object) {
   return ByteBuffer.wrap(SERIALIZER.encode(object));
 }
예제 #2
0
 @Override
 public <T> T readObject(ByteBuffer buffer) {
   return SERIALIZER.decode(buffer);
 }