public static boolean isContentType(URL filename, String desiredMimeType) {
		final ContentFileTypeMap map = ensureContentTypeManager();
		return map.isContentType(filename, desiredMimeType);
	}
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.

@param filename is the name of the file to test.
@param desiredMimeType is the desired MIME type.
@return <code>true</code> if the given file has type equal to the given MIME type,
otherwise <code>false</code>.