public static void write(String filename,Object o) throws Exception {
  write(new FileOutputStream(filename),o);
}

public static void write ( String filename , Object o ) throws Exception { write ( new FileOutputStream ( filename ) , o ) ; }
serializes the given object to the specified file .
