public static InputStream getResourceAsStream ( Class < ? > requestingClass , String resource ) throws ResourceMissingException , IOException { return getResourceAsURL ( requestingClass , resource ) . openStream ( ) ; }
Returns the requested resource as a stream .