@Deprecated
    public MimeType getMimeType(File file) throws MimeTypeException, IOException {
        return forName(new Tika(this).detect(file));
    }
Find the Mime Content Type of a document stored in the given file.
Returns application/octet-stream if no better match is found.

@param file file to analyze
@return the Mime Content Type of the specified document
@throws MimeTypeException if the type can't be detected
@throws IOException       if the file can't be read
@deprecated Use {@link Tika#detect(File)} instead
tika-core/src/main/java/org/apache/tika/mime/MimeTypes.java