public static List<String> getExtensions(final String pMIME) {
        String mime = bareMIME(StringUtil.toLowerCase(pMIME));
        if (mime.endsWith("/*")) {
            return getExtensionForWildcard(mime);
        }
        List<String> extensions = sMIMEToExt.get(mime);
        return maskNull(extensions);
    }
public static List < String > getExtensions ( final String pMIME ) { String mime = bareMIME ( StringUtil . toLowerCase ( pMIME ) ) ; if ( mime . endsWith ( "/*" ) ) { return getExtensionForWildcard ( mime ) ; } List < String > extensions = sMIMEToExt . get ( mime ) ; return maskNull ( extensions ) ; }
Returns all file extension for the given MIME type.
The default extension will be the first in the list.
Note that no specific order is given for wildcard types (image/*, *&#47;* etc).

@param pMIME the MIME type

@return a {@link List} of {@code String}s containing the MIME types, or an empty
list, if there are no known file extensions for the given MIME type.