Code example for BufferedWriter

Methods: flush

0
                               final OutputStream outputStream,
                               final String encoding)
      throws ReportProcessingException, IOException 
  { 
    final CSVProcessor pr = new CSVProcessor(report);
    final Writer fout = new BufferedWriter(new OutputStreamWriter(outputStream, encoding));
    pr.setWriter(fout);
    pr.processReport();
    fout.flush();
  } 
 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE