code: public File transform(File inputFile,
                            File outputFile,
                            GlobalTransform transform) {
          try {
              BufferedReader br = new BufferedReader(new FileReader(inputFile));
              PrintWriter writer = new PrintWriter(new BufferedWriter(
                          new FileWriter(outputFile)));
  
              for (String line = null; (line = br.readLine()) != null; ) {
                  String[] rowColEntry = line.split("\\s+");
                  int row = Integer.parseInt(rowColEntry[0]);
                  int col = Integer.parseInt(rowColEntry[1]);
                  double value = Double.parseDouble(rowColEntry[2]);
                  writer.printf("%d %d %f\n", row, col, 
                                transform.transform(row-1, col-1, value));
              }
              writer.close();
  
              return outputFile;
          } catch (IOException ioe) {
              throw new IOError(ioe);
          }
      }
docs: {@inheritDoc}