Here you can find the source of getBufferedReaderAsResource(Class> clazz, String fileName)
public static BufferedReader getBufferedReaderAsResource(Class<?> clazz, String fileName)
//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 BufferedReader getBufferedReaderAsResource(Class<?> clazz, String fileName) { return new BufferedReader(getInputStreamReaderAsResource(clazz, fileName)); }/*from www . j a v a 2 s . c o m*/ public static InputStreamReader getInputStreamReaderAsResource(Class<?> clazz, String fileName) { return new InputStreamReader(getInputStreamAsResource(clazz, fileName)); } public static InputStream getInputStreamAsResource(Class<?> clazz, String fileName) { InputStream stream = clazz.getResourceAsStream(fileName); return stream; } }