public static boolean isContentType ( URL filename , String desiredMimeType ) { final ContentFileTypeMap map = ensureContentTypeManager ( ) ; return map . isContentType ( filename , desiredMimeType ) ; }
Replies if the given file is compatible with the given MIME type .