/** * Maps the specified <code>key</code> to the specified <code>value</code> * in this <code>TranscodingHints</code> object. * * @param key the trancoding hint key. * @param value the trancoding hint value. * @exception IllegalArgumentException value is not * appropriate for the specified key. * @exception ClassCastException key is not of type * <code>TranscodingHints.Key</code> */ public Object put(Object key, Object value) { if (!((Key) key).isCompatibleValue(value)) { throw new IllegalArgumentException(value+ " incompatible with "+ key); } return super.put(key, value); }
/** * Maps the specified <code>key</code> to the specified <code>value</code> * in this <code>TranscodingHints</code> object. * * @param key the trancoding hint key. * @param value the trancoding hint value. * @exception IllegalArgumentException value is not * appropriate for the specified key. * @exception ClassCastException key is not of type * <code>TranscodingHints.Key</code> */ public Object put(Object key, Object value) { if (!((Key) key).isCompatibleValue(value)) { throw new IllegalArgumentException(value+ " incompatible with "+ key); } return super.put(key, value); }