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