public static InputStream getResourceAsStream ( final String resourceName , final ClassLoader callingClass ) throws IOException { URL url = getResourceUrl ( resourceName , callingClass ) ; if ( url != null ) { return url . openStream ( ) ; } return null ; }
Opens a resource of the specified name for reading .