Example #1
0
 public Buffer objectToBuffer(Object obj) throws Exception {
   byte[] buf = marshaller.objectToByteBuffer(obj);
   return new Buffer(buf, 0, buf.length);
 }
Example #2
0
 public byte[] objectToByteBuffer(Object obj) throws Exception {
   return marshaller.objectToByteBuffer(obj);
 }