public void addPattern(MimeType type, String pattern, boolean isRegex)
            throws MimeTypeException {
        patterns.add(pattern, isRegex, type);
    }
Adds a file name pattern for the given media type. The caller can specify
whether the pattern being added <b>is</b> or <b>is not</b> a JDK standard
regular expression via the <code>isRegex</code> parameter. If the value
is set to true, then a JDK standard regex is assumed, otherwise the
freedesktop glob type is assumed.

@param type    media type
@param pattern file name pattern
@param isRegex set to true if JDK std regexs are desired, otherwise set to
               false.
@throws MimeTypeException if the pattern conflicts with existing ones.
tika-core/src/main/java/org/apache/tika/mime/MimeTypes.java