question: public boolean hasMIMEType ( String mimeType ) { if ( mimeType == null ) return false ; String type = mimeType ; if ( mimeType . indexOf ( ';' ) > 0 ) { type = mimeType . substring ( 0 , mimeType . indexOf ( ';' ) ) ; } for ( String mt : this . mimeTypes ) { if ( mt . equalsIgnoreCase ( mimeType ) ) { return true ; } if ( mimeType != type && mt . equalsIgnoreCase ( type ) ) { return true ; } } return false ; }
target:  Checks if specified MIME type matches one of the FileFormat's MIME types. The MIME types are compared ignoring upper/lower-case differences.