Here you can find the source of getBufferedReader(File file, String encoding)
public static BufferedReader getBufferedReader(File file, String encoding) throws Exception
//package com.java2s; //License from project: Apache License import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.InputStreamReader; public class Main { public static BufferedReader getBufferedReader(String filePath, String encoding) throws Exception { return new BufferedReader(new InputStreamReader(new FileInputStream(filePath), encoding)); }// ww w . j a va 2 s . c o m public static BufferedReader getBufferedReader(File file, String encoding) throws Exception { return new BufferedReader(new InputStreamReader(new FileInputStream(file), encoding)); } }