private static InputStream openResource ( final String file ) throws IOException { InputStream stream = HtmlConverterApplication . class . getResourceAsStream ( "/" + file ) ; if ( stream == null ) { throw new FileNotFoundException ( file ) ; } else { return stream ; } }
Opens a resource from classpath .