code: public static Object streamIn(byte[] bytes, boolean compressed) throws IOException, ClassNotFoundException {
          return streamIn(new ByteArrayInputStream(bytes), null, compressed);
      }
docs: This method reads the contents from the given byte array and returns the object.  The contents in the given
  buffer could be compressed or uncompressed depending on the given flag.  It is assumed that the content
  stream was written by the corresponding streamOut methods of this class.
  @param bytes
  @param compressed
  @return
  @throws IOException
  @throws ClassNotFoundException