Package org.commonlib.io

Examples of org.commonlib.io.ByteBufferInputStream


   * @throws Exception
   */
  public static Serializable readObjectFromBytes(byte[] array)
     throws Exception
  {
    ByteBufferInputStream fis = new ByteBufferInputStream();
    fis.addToBuffer(array);
    ObjectInputStream ois = new ObjectInputStream(fis);
    Object or = null;
    try
    {
      or = ois.readObject();
    }
    finally
    {
      ois.close();
      fis.close();
    }
    return (Serializable) or;
  }
View Full Code Here

TOP

Related Classes of org.commonlib.io.ByteBufferInputStream

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.