Package com.alibaba.com.caucho.hessian.io

Examples of com.alibaba.com.caucho.hessian.io.Hessian2Output.writeObject()


    oos.writeObject(data);
    System.out.println("compacted java:"+Bytes.bytes2hex(os.toByteArray())+":"+os.size());

    os = new ByteArrayOutputStream();
    Hessian2Output h2o = new Hessian2Output(os);
    h2o.writeObject(data);
    h2o.flushBuffer();
    System.out.println("hessian:"+Bytes.bytes2hex(os.toByteArray())+":"+os.size());

    os = new ByteArrayOutputStream();
    Builder<long[]> lb = Builder.register(long[].class);
View Full Code Here


    long now = System.currentTimeMillis();
    for(int i=0;i<500;i++)
    {
      ByteArrayOutputStream os = new ByteArrayOutputStream();
      Hessian2Output out = new Hessian2Output(os);
      out.writeObject(bean);
      out.flushBuffer();
      os.close();
      if( i == 0 )
        len = os.toByteArray().length;
      ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.