Here you can find the source of getInputStream(String fileName)
private static InputStream getInputStream(String fileName)
//package com.java2s; //License from project: Apache License import java.io.InputStream; public class Main { private static InputStream getInputStream(String fileName) { return Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName); }//from w w w . j a v a 2s. c o m }