BufferedWriter newWriter(File file) throws IOException {
  return new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),Charset.forName("UTF-8")));
}

BufferedWriter newWriter ( File file ) throws IOException { return new BufferedWriter ( new OutputStreamWriter ( new FileOutputStream ( file ) , Charset . forName ( "UTF-8" ) ) ) ; }
creates a new bufferedwriter instance .
