public URI getResourceAsUri(String name) throws URISyntaxException {
        URL url = getResourceAsUrl(name);
        if (url == null) {
            return null;
        }
        return url.toURI();
    }
Finds a resource with a given name.

@param name name of the desired resource
@return A {@link java.net.URI} object or null
@throws URISyntaxException if this URL is not formatted strictly according to
                           RFC2396 and cannot be converted to a URI.
tika-core/src/test/java/org/apache/tika/TikaTest.java