Here you can find the source of getReader(File file)
public static Reader getReader(File file) throws FileNotFoundException
//package com.java2s; //License from project: Apache License import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.InputStreamReader; import java.io.Reader; public class Main { public static Reader getReader(File file) throws FileNotFoundException { return new BufferedReader(new InputStreamReader(new FileInputStream(file))); }/*from w w w . j av a 2 s . c o m*/ public static Reader getReader(String fileName) throws FileNotFoundException { return new BufferedReader(new InputStreamReader(new FileInputStream(new File(fileName)))); } }