org.pdfbox.pdmodel.common
Class COSDictionaryMap
java.lang.Object
org.pdfbox.pdmodel.common.COSDictionaryMap
- Map
public class COSDictionaryMap
extends java.lang.Object
implements Map
This is a Map that will automatically sync the contents to a COSDictionary.
COSDictionaryMap
public COSDictionaryMap(Map actualsMap,
COSDictionary dicMap)
Constructor for this map.
actualsMap
- The map with standard java objects as values.dicMap
- The map with COSBase objects as values.
containsKey
public boolean containsKey(Object key)
containsValue
public boolean containsValue(Object value)
convert
public static COSDictionary convert(Map someMap)
This will take a map<java.lang.String,org.pdfbox.pdmodel.COSObjectable>
and convert it into a COSDictionary<COSName,COSBase>.
someMap
- A map containing COSObjectables
convertBasicTypesToMap
public static COSDictionaryMap convertBasicTypesToMap(COSDictionary map)
throws IOException
This will take a COS dictionary and convert it into COSDictionaryMap. All cos
objects will be converted to their primitive form.
entrySet
public Set entrySet()
equals
public boolean equals(Object o)
get
public Object get(Object key)
hashCode
public int hashCode()
isEmpty
public boolean isEmpty()
keySet
public Set keySet()
put
public Object put(Object key,
Object value)
putAll
public void putAll(Map t)
remove
public Object remove(Object key)
toString
public String toString()
values
public Collection values()