/** * Constructs a new <code>TranscodingHints</code> with keys and values * initialized from the specified Map object (which may be null). * * @param init a map of key/value pairs to initialize the hints * or null if the object should be empty */ public TranscodingHints(Map init) { super(7); if (init != null) { putAll(init); } }
/** * Replaces the values of all preferences for the transcoding algorithms * with the specified hints. * @param hints the rendering hints to be set */ public void setTranscodingHints(Map hints) { this.hints.putAll(hints); }
/** * Replaces the values of all preferences for the transcoding algorithms * with the specified hints. * @param hints the rendering hints to be set */ public void setTranscodingHints(Map hints) { this.hints.putAll(hints); }
/** * Constructs a new <code>TranscodingHints</code> with keys and values * initialized from the specified Map object (which may be null). * * @param init a map of key/value pairs to initialize the hints * or null if the object should be empty */ public TranscodingHints(Map init) { super(7); if (init != null) { putAll(init); } }
/** * Copies all of the mappings from the specified <code>Map</code> * to this <code>TranscodingHints</code>. * * @param m mappings to be stored in this <code>TranscodingHints</code>. * @exception ClassCastException key is not of type * <code>TranscodingHints.Key</code> */ public void putAll(Map m) { if (m instanceof TranscodingHints) { putAll(((TranscodingHints) m)); } else { for (Object o : m.entrySet()) { Map.Entry entry = (Map.Entry) o; put(entry.getKey(), entry.getValue()); } } }
/** * Copies all of the mappings from the specified <code>Map</code> * to this <code>TranscodingHints</code>. * * @param m mappings to be stored in this <code>TranscodingHints</code>. * @exception ClassCastException key is not of type * <code>TranscodingHints.Key</code> */ public void putAll(Map m) { if (m instanceof TranscodingHints) { putAll(((TranscodingHints) m)); } else { Iterator iter = m.entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); put(entry.getKey(), entry.getValue()); } } }