@Override
    public InputStream fetch(String fetchKey, Metadata metadata, ParseContext parseContext) throws IOException, TikaException {
        if (fetchKey.contains("\u0000")) {
            throw new IllegalArgumentException("URL must not contain \u0000. " +
                    "Please review the life decisions that led you to requesting " +
                    "a URL with this character in it.");
        }
        if (fetchKey.toLowerCase(Locale.US).trim().startsWith("file:")) {
            throw new IllegalArgumentException(
                    "The UrlFetcher does not fetch from file shares; " +
                    "please use the FileSystemFetcher");
        }
        return TikaInputStream.get(new URL(fetchKey), metadata);
    }
Simple fetcher for URLs. This simply calls {@link TikaInputStream#get(URL)}.
This intentionally does not support fetching for files.
Please use the FileSystemFetcher for that.  If you need more advanced control (passwords,
timeouts, proxies, etc), please use the tika-fetcher-http module.
tika-core/src/main/java/org/apache/tika/pipes/fetcher/url/UrlFetcher.java