Package org.apache.niolex.commons.stream

Examples of org.apache.niolex.commons.stream.KryoOutstream


     * @see org.apache.niolex.commons.test.Performance#run()
     */
    @Override
    protected void run() {
      ByteArrayOutputStream bos = new ByteArrayOutputStream();
      KryoOutstream ooo = new KryoOutstream(bos);
      ooo.writeObject(bench);
      ooo.writeObject(q);
      ooo.close();
      byte[] bs = bos.toByteArray();
      KryoInstream iii = new KryoInstream(new ByteArrayInputStream(bs));
      Benchmark cp = iii.readObject(Benchmark.class);
      Bean t = iii.readObject(Bean.class);
      assertTrue(t.getId() != 0);
View Full Code Here

TOP

Related Classes of org.apache.niolex.commons.stream.KryoOutstream

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.