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

Examples of com.alibaba.com.caucho.hessian.io.Hessian2Input


      out.flushBuffer();
      os.close();
      if( i == 0 )
        len = os.toByteArray().length;
      ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());
      Hessian2Input in = new Hessian2Input(is);
      assertEquals(in.readObject().getClass(), Bean.class);
    }
    System.out.println("Hessian2 write and parse 500 times in " + (System.currentTimeMillis()-now)+"ms, size " + len);
  }
View Full Code Here


{
  private final Hessian2Input mH2i;

  public Hessian2ObjectInput(InputStream is)
  {
    mH2i = new Hessian2Input(is);
    mH2i.setSerializerFactory(Hessian2SerializerFactory.SERIALIZER_FACTORY);
  }
View Full Code Here

TOP

Related Classes of com.alibaba.com.caucho.hessian.io.Hessian2Input

Copyright © 2018 www.massapicom. 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.