public static MimeTypes create(String filePath) throws IOException, MimeTypeException {
        return create(MimeTypesReader.class.getResource(filePath));
    }
Creates and returns a MimeTypes instance from the specified file path,
as interpreted by the class loader in getResource().

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