public static InputStream getStream ( String name ) { ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver ( IOUtils . class . getClassLoader ( ) ) ; InputStream stream = getInputStreamWithResolver ( resolver , name ) ; // Not Found if ( stream == null ) { throw new MustacheIOException ( "Unable to locate {}" + name ) ; } return stream ; }
Return an input stream from given name . Name is searched into the classpath . Name can contains ant style pattern .