public static InputStream getFor ( String name , Class < ? > cls ) { InputStream ret ; if ( cls == null ) throw new NullPointerException ( "cls is null" ) ; if ( ( ret = cls . getResourceAsStream ( getResourcePathFor ( name , cls ) ) ) == null ) throw new ResourceException ( "Unable to find resource for " + name + " and " + cls ) ; return ret ; }
Gets a InputStream for a class s package .