Examples of JBossObjectInputStream


Examples of org.jboss.serial.io.JBossObjectInputStream

        objout.writeObject(proxy.getClass());
        objout.flush();

        SizeBenchmarkTestCase.saveFileNoCheck("/tmp/check.bin",byteout.toByteArray());
       
        JBossObjectInputStream objectInput = new JBossObjectInputStream(new ByteArrayInputStream(byteout.toByteArray()));
        Class baseNew = (Class)objectInput.readObject();
        assertEquals(proxy.getClass(),baseNew);
        //assertEquals(4,baseNew.doSomething(5));
  }
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.