Here you can find the source of getBufferedReader(File file, String charset)
public static BufferedReader getBufferedReader(File file, String charset) throws IOException
//package com.java2s; //License from project: Apache License import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static BufferedReader getBufferedReader(File file, String charset) throws IOException { FileInputStream is = new FileInputStream(file); InputStreamReader fileReader = new InputStreamReader(is, charset); return new BufferedReader(fileReader); }/* w w w.jav a 2 s .co m*/ }