public static Object deserializeObject(final byte[] objBytes) throws IOException, ClassNotFoundException {
  ObjectInputStream objIn=null;
  try {
    objIn=new ObjectInputStream(new ByteArrayInputStream(objBytes));
    return objIn.readObject();
  }
  finally {
    close(objIn);
  }
}

public static Object deserializeObject ( final byte [ ] objBytes ) throws IOException , ClassNotFoundException { ObjectInputStream objIn = null ; try { objIn = new ObjectInputStream ( new ByteArrayInputStream ( objBytes ) ) ; return objIn . readObject ( ) ; } finally { close ( objIn ) ; } }
convenience method to de - serialize a byte array back into object form . < p / >
