List of utility methods to do BufferedWriter Create
BufferedWriter | getBufferedWriterOnFile(File file, String format) get Buffered Writer On File BufferedWriter bw; if (format.toLowerCase().equals("auto")) { format = file.getName(); if (format.toLowerCase().endsWith("gz")) { bw = new BufferedWriter(new OutputStreamWriter(new GZIPOutputStream(new FileOutputStream(file)))); else { ... |
BufferedWriter | toBufferedWriter(Writer w) to Buffered Writer if (w instanceof BufferedWriter) return (BufferedWriter) w; return new BufferedWriter(w); |