public static boolean isImage ( String mime ) { try { final MimeType type = new MimeType ( mime ) ; return IMAGE . equalsIgnoreCase ( type . getPrimaryType ( ) ) ; } catch ( MimeTypeParseException e ) { // } return false ; }
Replies if the specified MIME type corresponds to an image .