Here you can find the source of getResourceAsStrem(String name)
private static InputStream getResourceAsStrem(String name)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { private static InputStream getResourceAsStrem(String name) { return Thread.currentThread().getContextClassLoader().getResourceAsStream(name); }//from w w w .jav a 2s . c o m }