Class COSDictionaryMap<K,V>
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.common.COSDictionaryMap<K,V>
-
-
Constructor Summary
Constructors Constructor Description COSDictionaryMap(Map<K,V> actualsMap, COSDictionary dicMap)Constructor for this map.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)static COSDictionaryconvert(Map<String,?> someMap)This will take a map<java.lang.String,com.tom_roush.pdfbox.pdmodel.COSObjectable> and convert it into a COSDictionary.static COSDictionaryMap<String,Object>convertBasicTypesToMap(COSDictionary map)This will take a COS dictionary and convert it into COSDictionaryMap.Set<Map.Entry<K,V>>entrySet()booleanequals(Object o)Vget(Object key)inthashCode()booleanisEmpty()Set<K>keySet()Vput(K key, V value)voidputAll(Map<? extends K,? extends V> t)Vremove(Object key)intsize()StringtoString()Collection<V>values()-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
COSDictionaryMap
public COSDictionaryMap(Map<K,V> actualsMap, COSDictionary dicMap)
Constructor for this map.- Parameters:
actualsMap- The map with standard java objects as values.dicMap- The map with COSBase objects as values.
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,V>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
convert
public static COSDictionary convert(Map<String,?> someMap)
This will take a map<java.lang.String,com.tom_roush.pdfbox.pdmodel.COSObjectable> and convert it into a COSDictionary.- Parameters:
someMap- A map containing COSObjectables- Returns:
- A proper COSDictionary
-
convertBasicTypesToMap
public static COSDictionaryMap<String,Object> 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.- Parameters:
map- The COS mappings.- Returns:
- A standard java map.
- Throws:
IOException- If there is an error during the conversion.
-
-