public Analyzer saveAnalysis(File file) throws IOException {
  PrintStream ps=null;
  try {
    ps=new PrintStream(new BufferedOutputStream(new FileOutputStream(file)));
    printAnalysis(ps);
  }
  finally {
    if (ps != null) {
      ps.close();
    }
  }
  return this;
}

public Analyzer saveAnalysis ( File file ) throws IOException { PrintStream ps = null ; try { ps = new PrintStream ( new BufferedOutputStream ( new FileOutputStream ( file ) ) ) ; printAnalysis ( ps ) ; } finally { if ( ps != null ) { ps . close ( ) ; } } return this ; }
saves the analysis of all data recorded in this analyzer to the specified file .
