Class TranscodingHints
java.lang.Object
java.util.AbstractMap
java.util.HashMap
org.apache.batik.transcoder.TranscodingHints
- All Implemented Interfaces:
Serializable, Cloneable, Map
The
TranscodingHints class defines a way to pass
transcoding parameters or options to any transcoders.- Version:
- $Id$
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDefines the base type of all keys used to control various aspects of the transcoding operations.Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new emptyTranscodingHints.TranscodingHints(Map init) Constructs a newTranscodingHintswith keys and values initialized from the specified Map object (which may be null). -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(Object key) Returnstrueif thisTranscodingHintscontains a mapping for the specified key, false otherwise.Returns the value to which the specified key is mapped.Maps the specifiedkeyto the specifiedvaluein thisTranscodingHintsobject.voidCopies all of the mappings from the specifiedMapto thisTranscodingHints.voidputAll(TranscodingHints hints) Copies all of the keys and corresponding values from the specifiedTranscodingHintsobject to thisTranscodingHintsobject.Removes the key and its corresponding value from thisTranscodingHintsobject.Methods inherited from class HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, newHashMap, putIfAbsent, remove, replace, replace, replaceAll, size, valuesMethods inherited from class AbstractMap
equals, hashCode, toString
-
Constructor Details
-
TranscodingHints
public TranscodingHints()Constructs a new emptyTranscodingHints. -
TranscodingHints
Constructs a newTranscodingHintswith keys and values initialized from the specified Map object (which may be null).- Parameters:
init- a map of key/value pairs to initialize the hints or null if the object should be empty
-
-
Method Details
-
containsKey
Returnstrueif thisTranscodingHintscontains a mapping for the specified key, false otherwise.- Specified by:
containsKeyin interfaceMap- Overrides:
containsKeyin classHashMap- Parameters:
key- key whose present in thisTranscodingHintsis to be tested.- Throws:
ClassCastException- key is not of typeTranscodingHints.Key
-
get
-
put
Maps the specifiedkeyto the specifiedvaluein thisTranscodingHintsobject.- Specified by:
putin interfaceMap- Overrides:
putin classHashMap- Parameters:
key- the trancoding hint key.value- the trancoding hint value.- Throws:
IllegalArgumentException- value is not appropriate for the specified key.ClassCastException- key is not of typeTranscodingHints.Key
-
remove
Removes the key and its corresponding value from thisTranscodingHintsobject.- Specified by:
removein interfaceMap- Overrides:
removein classHashMap- Parameters:
key- the trancoding hints key that needs to be removed- Throws:
ClassCastException- key is not of typeTranscodingHints.Key
-
putAll
Copies all of the keys and corresponding values from the specifiedTranscodingHintsobject to thisTranscodingHintsobject. -
putAll
Copies all of the mappings from the specifiedMapto thisTranscodingHints.- Specified by:
putAllin interfaceMap- Overrides:
putAllin classHashMap- Parameters:
m- mappings to be stored in thisTranscodingHints.- Throws:
ClassCastException- key is not of typeTranscodingHints.Key
-