@Override
    public URI getURI() throws IOException {
        URL url = getURL();
        try {
            return ResourceUtils.toURI(url);
        } catch (URISyntaxException ex) {
            throw new IOException("Invalid URI [" + url + "]", ex);
        }
    }
This implementation builds a URI based on the URL returned
by {link #getURL()}.
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/core/io/AbstractResource.java