public static MimeTypes create(URL... urls) throws IOException, MimeTypeException {
        InputStream[] streams = new InputStream[urls.length];
        for (int i = 0; i < streams.length; i++) {
            streams[i] = urls[i].openStream();
        }

        try {
            return create(streams);
        } finally {
            for (InputStream stream : streams) {
                stream.close();
            }
        }
    }
Creates and returns a MimeTypes instance from the resource
at the location specified by the URL.  Opens and closes the
InputStream from the URL.
If multiple URLs are supplied, then they are loaded in turn.

@throws IOException       if the URL can not be accessed
@throws MimeTypeException if the type configuration is invalid
tika-core/src/main/java/org/apache/tika/mime/MimeTypesFactory.java