@Override public String append(List<EvaluationStatistics> stats){
  BufferedWriter bwriter;
  FileWriter fwriter;
  log("Writing " + stats.size() + " statistics to: "+ m_File);
  bwriter=null;
  fwriter=null;
  try {
    fwriter=new FileWriter(m_File,true);
    bwriter=new BufferedWriter(fwriter);
    for (    EvaluationStatistics stat : stats) {
      bwriter.write(KEY_CLASSIFIER + "=" + stat.getCommandLine());
      bwriter.write("\t");
      bwriter.write(KEY_RELATION + "=" + stat.getRelation());
      bwriter.write("\t");
      for (      String key : stat.keySet()) {
        bwriter.write("\t");
        bwriter.write(key + "=" + stat.get(key));
      }
      bwriter.newLine();
    }
    return null;
  }
 catch (  Exception e) {
    return handleException("Failed to write statistics to: " + m_File,e);
  }
 finally {
    FileUtils.closeQuietly(bwriter);
    FileUtils.closeQuietly(fwriter);
  }
}

@ Override public String append ( List < EvaluationStatistics > stats ) { BufferedWriter bwriter ; FileWriter fwriter ; log ( "Writing " + stats . size ( ) + " statistics to: " + m_File ) ; bwriter = null ; fwriter = null ; try { fwriter = new FileWriter ( m_File , true ) ; bwriter = new BufferedWriter ( fwriter ) ; for ( EvaluationStatistics stat : stats ) { bwriter . write ( KEY_CLASSIFIER + "=" + stat . getCommandLine ( ) ) ; bwriter . write ( "\t" ) ; bwriter . write ( KEY_RELATION + "=" + stat . getRelation ( ) ) ; bwriter . write ( "\t" ) ; for ( String key : stat . keySet ( ) ) { bwriter . write ( "\t" ) ; bwriter . write ( key + "=" + stat . get ( key ) ) ; } bwriter . newLine ( ) ; } return null ; } catch ( Exception e ) { return handleException ( "Failed to write statistics to: " + m_File , e ) ; } finally { FileUtils . closeQuietly ( bwriter ) ; FileUtils . closeQuietly ( fwriter ) ; } }
adds the given statistics .
