|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap
org.apache.batik.transcoder.TranscodingHints
public class TranscodingHints
The TranscodingHints class defines a way to pass transcoding parameters or options to any transcoders.
Nested Class Summary | |
---|---|
static class |
TranscodingHints.Key
Defines the base type of all keys used to control various aspects of the transcoding operations. |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
TranscodingHints()
Constructs a new empty TranscodingHints. |
|
TranscodingHints(Map init)
Constructs a new TranscodingHints with keys and values initialized from the specified Map object (which may be null). |
Method Summary | |
---|---|
boolean |
containsKey(Object key)
Returns true if this TranscodingHints contains a mapping for the specified key, false otherwise. |
Object |
get(Object key)
Returns the value to which the specified key is mapped. |
Object |
put(Object key,
Object value)
Maps the specified key to the specified value in this TranscodingHints object. |
void |
putAll(Map m)
Copies all of the mappings from the specified Map to this TranscodingHints. |
void |
putAll(TranscodingHints hints)
Copies all of the keys and corresponding values from the specified TranscodingHints object to this TranscodingHints object. |
Object |
remove(Object key)
Removes the key and its corresponding value from this TranscodingHints object. |
Methods inherited from class java.util.HashMap |
---|
clear, clone, containsValue, entrySet, isEmpty, keySet, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public TranscodingHints()
public TranscodingHints(Map init)
init
- a map of key/value pairs to initialize the hints
or null if the object should be emptyMethod Detail |
---|
public boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in class HashMap
key
- key whose present in this TranscodingHints
is to be tested.
ClassCastException
- key is not of type
TranscodingHints.Keypublic Object get(Object key)
get
in interface Map
get
in class HashMap
key
- a trancoding hint key
ClassCastException
- key is not of type
TranscodingHints.Keypublic Object put(Object key, Object value)
put
in interface Map
put
in class HashMap
key
- the trancoding hint key.value
- the trancoding hint value.
IllegalArgumentException
- value is not
appropriate for the specified key.
ClassCastException
- key is not of type
TranscodingHints.Keypublic Object remove(Object key)
remove
in interface Map
remove
in class HashMap
key
- the trancoding hints key that needs to be removed
ClassCastException
- key is not of type
TranscodingHints.Keypublic void putAll(TranscodingHints hints)
public void putAll(Map m)
putAll
in interface Map
putAll
in class HashMap
m
- mappings to be stored in this TranscodingHints.
ClassCastException
- key is not of type
TranscodingHints.Key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |