Code example for UnsupportedEncodingException

0
     */ 
    public static String getMimeName(int mibEnumValue)
            throws UnsupportedEncodingException { 
        String name = MIBENUM_TO_NAME_MAP.get(mibEnumValue);
        if (name == null) {
            throw new UnsupportedEncodingException();
        } 
        return name;
    } 
 
    /** 
     * Map a well-known charset name to its assigned MIBEnum number. 
     * 
     * @param mimeName The charset name. 
     * @return The MIBEnum number assigned by IANA for this charset. 
     * @throws UnsupportedEncodingException 
     */ 
    public static int getMibEnumValue(String mimeName)
            throws UnsupportedEncodingException { 
        if(null == mimeName) {