public static boolean isMimeTypeImage(String mimeType){
  if (mimeType.equals(Const.ContentTypes.IMAGE_GIF)) {
    return true;
  }
 else   if (mimeType.equals(Const.ContentTypes.IMAGE_JPG)) {
    return true;
  }
 else   if (mimeType.equals(Const.ContentTypes.IMAGE_PNG)) {
    return true;
  }
  return false;
}

public static boolean isMimeTypeImage ( String mimeType ) { if ( mimeType . equals ( Const . ContentTypes . IMAGE_GIF ) ) { return true ; } else if ( mimeType . equals ( Const . ContentTypes . IMAGE_JPG ) ) { return true ; } else if ( mimeType . equals ( Const . ContentTypes . IMAGE_PNG ) ) { return true ; } return false ; }
return if mime type is image
