public class TranscodingHints
extends java.util.HashMap
TranscodingHints
class defines a way to pass
transcoding parameters or options to any transcoders.Modifier and Type | Class and Description |
---|---|
static class |
TranscodingHints.Key
Defines the base type of all keys used to control various
aspects of the transcoding operations.
|
Constructor and Description |
---|
TranscodingHints()
Constructs a new empty
TranscodingHints . |
TranscodingHints(java.util.Map init)
Constructs a new
TranscodingHints with keys and values
initialized from the specified Map object (which may be null). |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(java.lang.Object key)
Returns
true if this TranscodingHints contains a
mapping for the specified key, false otherwise. |
java.lang.Object |
get(java.lang.Object key)
Returns the value to which the specified key is mapped.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Maps the specified
key to the specified value
in this TranscodingHints object. |
void |
putAll(java.util.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. |
java.lang.Object |
remove(java.lang.Object key)
Removes the key and its corresponding value from this
TranscodingHints object. |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
public TranscodingHints()
TranscodingHints
.public TranscodingHints(java.util.Map init)
TranscodingHints
with keys and values
initialized from the specified Map object (which may be null).init
- a map of key/value pairs to initialize the hints
or null if the object should be emptypublic boolean containsKey(java.lang.Object key)
true
if this TranscodingHints
contains a
mapping for the specified key, false otherwise.containsKey
in interface java.util.Map
containsKey
in class java.util.HashMap
key
- key whose present in this TranscodingHints
is to be tested.java.lang.ClassCastException
- key is not of type
TranscodingHints.Key
public java.lang.Object get(java.lang.Object key)
get
in interface java.util.Map
get
in class java.util.HashMap
key
- a trancoding hint keyjava.lang.ClassCastException
- key is not of type
TranscodingHints.Key
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
key
to the specified value
in this TranscodingHints
object.put
in interface java.util.Map
put
in class java.util.HashMap
key
- the trancoding hint key.value
- the trancoding hint value.java.lang.IllegalArgumentException
- value is not
appropriate for the specified key.java.lang.ClassCastException
- key is not of type
TranscodingHints.Key
public java.lang.Object remove(java.lang.Object key)
TranscodingHints
object.remove
in interface java.util.Map
remove
in class java.util.HashMap
key
- the trancoding hints key that needs to be removedjava.lang.ClassCastException
- key is not of type
TranscodingHints.Key
public void putAll(TranscodingHints hints)
TranscodingHints
object to this
TranscodingHints
object.public void putAll(java.util.Map m)
Map
to this TranscodingHints
.putAll
in interface java.util.Map
putAll
in class java.util.HashMap
m
- mappings to be stored in this TranscodingHints
.java.lang.ClassCastException
- key is not of type
TranscodingHints.Key
Copyright © 2022 Apache Software Foundation. All Rights Reserved.