Package com.peterhi.io

Examples of com.peterhi.io.PmInputStream.available()


   
    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
    PmInputStream pis = new PmInputStream(bais);
    Primitives p1 = pis.readModel();
   
    Assert.assertEquals(0, pis.available());
    pos.close();
    pis.close();
   
    Assert.assertEquals(p0.isBooleanValue(), p1.isBooleanValue());
    Assert.assertEquals(p0.getByteValue(), p1.getByteValue());
View Full Code Here


    ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
    PmInputStream pis = new PmInputStream(bais);
    Boxers bNull2 = pis.readModel();
    Boxers b1 = pis.readModel();
   
    Assert.assertEquals(0, pis.available());
    pos.close();
    pis.close();
   
    Assert.assertNull(bNull2.getBooleanObject());
    Assert.assertNull(bNull2.getByteObject());
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.