Here you can find the source of readFileReader(String filePath)
public static Reader readFileReader(String filePath) throws IOException
//package com.java2s; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; public class Main { public static Reader readFileReader(String filePath) throws IOException { File file = new File(filePath); FileInputStream fileInputStream = null; try {//from w w w .ja v a2s . c o m fileInputStream = new FileInputStream(file); } catch (FileNotFoundException e) { throw e; } return new InputStreamReader(fileInputStream); } }