Here you can find the source of getReader(final Object aReference, final String aResourceName)
public static final BufferedReader getReader(final Object aReference, final String aResourceName)
//package com.java2s; //License from project: Open Source License import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; public class Main { public static final BufferedReader getReader(final Object aReference, final String aResourceName) { final InputStream resource = aReference.getClass().getResourceAsStream(aResourceName); final InputStreamReader reader = new InputStreamReader(resource); return new BufferedReader(reader); }//from w w w . jav a 2 s. co m }