Here you can find the source of getBufferedWriter(String path)
public static BufferedWriter getBufferedWriter(String path) throws IOException
//package com.java2s; //License from project: Apache License import java.io.BufferedWriter; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; public class Main { public static BufferedWriter getBufferedWriter(String path) throws IOException { FileOutputStream fileOutputStream = new FileOutputStream(path); OutputStreamWriter out = new OutputStreamWriter(fileOutputStream, "utf-8"); return new BufferedWriter(out); }//from ww w. j a va2 s. com }