protected static void writeBinary(String binary,Object o) throws Exception {
  FileOutputStream fo;
  ObjectOutputStream oo;
  fo=new FileOutputStream(binary);
  oo=new ObjectOutputStream(new BufferedOutputStream(fo));
  oo.writeObject(o);
  oo.close();
}

protected static void writeBinary ( String binary , Object o ) throws Exception { FileOutputStream fo ; ObjectOutputStream oo ; fo = new FileOutputStream ( binary ) ; oo = new ObjectOutputStream ( new BufferedOutputStream ( fo ) ) ; oo . writeObject ( o ) ; oo . close ( ) ; }
serializes the given object into the given file
