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;
}

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 ; }
checks if specified mime type matches one of the fileformat ' s mime types . the mime types are compared ignoring upper / lower - case differences .
