@Deprecated
    public MimeType getMimeType(String name) {
        MimeType type = patterns.matches(name);
        if (type != null) {
            return type;
        }
        type = patterns.matches(name.toLowerCase(Locale.ENGLISH));
        if (type != null) {
            return type;
        } else {
            return rootMimeType;
        }
    }
Find the Mime Content Type of a document from its name.
Returns application/octet-stream if no better match is found.

@param name of the document to analyze.
@return the Mime Content Type of the specified document name
@deprecated Use {@link Tika#detect(String)} instead
tika-core/src/main/java/org/apache/tika/mime/MimeTypes.java