protected static Object readBinary(String binary) throws Exception {
  FileInputStream fi;
  ObjectInputStream oi;
  Object o;
  fi=new FileInputStream(binary);
  oi=new ObjectInputStream(new BufferedInputStream(fi));
  o=oi.readObject();
  oi.close();
  return o;
}

protected static Object readBinary ( String binary ) throws Exception { FileInputStream fi ; ObjectInputStream oi ; Object o ; fi = new FileInputStream ( binary ) ; oi = new ObjectInputStream ( new BufferedInputStream ( fi ) ) ; o = oi . readObject ( ) ; oi . close ( ) ; return o ; }
loads a serialized object and returns it
