public void saveData(File file) throws IOException {
synchronized (accumulators) {
    ObjectOutputStream oos=null;
    try {
      oos=new ObjectOutputStream(new FileOutputStream(file));
      oos.writeObject(accumulators);
    }
  finally {
      if (oos != null) {
        oos.close();
      }
    }
  }
}

public void saveData ( File file ) throws IOException { synchronized ( accumulators ) { ObjectOutputStream oos = null ; try { oos = new ObjectOutputStream ( new FileOutputStream ( file ) ) ; oos . writeObject ( accumulators ) ; } finally { if ( oos != null ) { oos . close ( ) ; } } } }
saves all results stored in this controller to the specified file .
