Package org.apache.batik.transcoder
Class TranscodingHints
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap
-
- org.apache.batik.transcoder.TranscodingHints
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.util.Map
public class TranscodingHints extends java.util.HashMapTheTranscodingHintsclass defines a way to pass transcoding parameters or options to any transcoders.- Version:
- $Id: TranscodingHints.java 1805150 2017-08-16 08:29:12Z ssteiner $
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTranscodingHints.KeyDefines the base type of all keys used to control various aspects of the transcoding operations.
-
Constructor Summary
Constructors Constructor Description TranscodingHints()Constructs a new emptyTranscodingHints.TranscodingHints(java.util.Map init)Constructs a newTranscodingHintswith keys and values initialized from the specified Map object (which may be null).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(java.lang.Object key)Returnstrueif thisTranscodingHintscontains a mapping for the specified key, false otherwise.java.lang.Objectget(java.lang.Object key)Returns the value to which the specified key is mapped.java.lang.Objectput(java.lang.Object key, java.lang.Object value)Maps the specifiedkeyto the specifiedvaluein thisTranscodingHintsobject.voidputAll(java.util.Map m)Copies all of the mappings from the specifiedMapto thisTranscodingHints.voidputAll(TranscodingHints hints)Copies all of the keys and corresponding values from the specifiedTranscodingHintsobject to thisTranscodingHintsobject.java.lang.Objectremove(java.lang.Object key)Removes the key and its corresponding value from thisTranscodingHintsobject.-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
TranscodingHints
public TranscodingHints()
Constructs a new emptyTranscodingHints.
-
TranscodingHints
public TranscodingHints(java.util.Map init)
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 Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
Returnstrueif thisTranscodingHintscontains a mapping for the specified key, false otherwise.- Specified by:
containsKeyin interfacejava.util.Map- Overrides:
containsKeyin classjava.util.HashMap- Parameters:
key- key whose present in thisTranscodingHintsis to be tested.- Throws:
java.lang.ClassCastException- key is not of typeTranscodingHints.Key
-
get
public java.lang.Object get(java.lang.Object key)
Returns the value to which the specified key is mapped.- Specified by:
getin interfacejava.util.Map- Overrides:
getin classjava.util.HashMap- Parameters:
key- a trancoding hint key- Throws:
java.lang.ClassCastException- key is not of typeTranscodingHints.Key
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)Maps the specifiedkeyto the specifiedvaluein thisTranscodingHintsobject.- Specified by:
putin interfacejava.util.Map- Overrides:
putin classjava.util.HashMap- Parameters:
key- the trancoding hint key.value- the trancoding hint value.- Throws:
java.lang.IllegalArgumentException- value is not appropriate for the specified key.java.lang.ClassCastException- key is not of typeTranscodingHints.Key
-
remove
public java.lang.Object remove(java.lang.Object key)
Removes the key and its corresponding value from thisTranscodingHintsobject.- Specified by:
removein interfacejava.util.Map- Overrides:
removein classjava.util.HashMap- Parameters:
key- the trancoding hints key that needs to be removed- Throws:
java.lang.ClassCastException- key is not of typeTranscodingHints.Key
-
putAll
public void putAll(TranscodingHints hints)
Copies all of the keys and corresponding values from the specifiedTranscodingHintsobject to thisTranscodingHintsobject.
-
putAll
public void putAll(java.util.Map m)
Copies all of the mappings from the specifiedMapto thisTranscodingHints.- Specified by:
putAllin interfacejava.util.Map- Overrides:
putAllin classjava.util.HashMap- Parameters:
m- mappings to be stored in thisTranscodingHints.- Throws:
java.lang.ClassCastException- key is not of typeTranscodingHints.Key
-
-