Package org.exoplatform.webui.application.replication.serial

Examples of org.exoplatform.webui.application.replication.serial.ObjectReader


      ByteArrayOutputStream baos = new ByteArrayOutputStream();
      ObjectWriter writer = new ObjectWriter(this, baos);
      writer.writeObject(o);
      writer.close();
      ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
      ObjectReader in = new ObjectReader(this, bais);
      return (O)in.readObject();
   }
View Full Code Here


   }

   public Object read(byte[] bytes) throws IOException, ClassNotFoundException
   {
      ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
      ObjectReader in = new ObjectReader(this, bais);
      return in.readObject();
   }
View Full Code Here

TOP

Related Classes of org.exoplatform.webui.application.replication.serial.ObjectReader

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.