public void printFooter() throws Exception {
  String error;
  BufferedWriter writer;
  if ((error=checkBasic()) != null) {
    throw new WekaException(error);
  }
  doPrintFooter();
  if (!m_OutputFile.isDirectory()) {
    try {
      writer=new BufferedWriter(new FileWriter(m_OutputFile));
      writer.write(m_FileBuffer.toString());
      writer.newLine();
      writer.flush();
      writer.close();
    }
 catch (    Exception e) {
      e.printStackTrace();
    }
  }
}

public void printFooter ( ) throws Exception { String error ; BufferedWriter writer ; if ( ( error = checkBasic ( ) ) != null ) { throw new WekaException ( error ) ; } doPrintFooter ( ) ; if ( ! m_OutputFile . isDirectory ( ) ) { try { writer = new BufferedWriter ( new FileWriter ( m_OutputFile ) ) ; writer . write ( m_FileBuffer . toString ( ) ) ; writer . newLine ( ) ; writer . flush ( ) ; writer . close ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; } } }
prints the footer to the buffer . this will also store the generated output in a file if an output file was specified .
