public static boolean hasMimeType(String mimeType){
  if (mimeType == null || mimeType.isEmpty()) {
    return false;
  }
  return mimeTypeToExtensionMap.containsKey(mimeType);
}

public static boolean hasMimeType ( String mimeType ) { if ( mimeType == null || mimeType . isEmpty ( ) ) { return false ; } return mimeTypeToExtensionMap . containsKey ( mimeType ) ; }
returns true if the given mime type has an entry in the map .
