Package java.io

Examples of java.io.ObjectInput.available()


      ByteArrayInputStream bin = new ByteArrayInputStream(bout.toByteArray());
      ObjectInput oi = marshaller.startObjectInput(bin, false);
      MarshalledValue recreated = (MarshalledValue) marshaller.objectFromObjectStream(oi);

      // there should be nothing more
      assert oi.available() == 0;
      marshaller.finishObjectInput(oi);
      bin.close();

      assertSerialized(recreated);
      assert recreated.equals(mv);
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.