|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.common.COSDictionaryMap
This is a Map that will automatically sync the contents to a COSDictionary.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
Map.Entry |
Constructor Summary | |
COSDictionaryMap(Map actualsMap,
COSDictionary dicMap)
Constructor for this map. |
Method Summary | |
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
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>. |
static COSDictionaryMap |
convertBasicTypesToMap(COSDictionary map)
This will take a COS dictionary and convert it into COSDictionaryMap. |
Set |
entrySet()
|
boolean |
equals(Object o)
|
Object |
get(Object key)
|
int |
hashCode()
|
boolean |
isEmpty()
|
Set |
keySet()
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map t)
|
Object |
remove(Object key)
|
int |
size()
|
String |
toString()
This will get a string representation of this map. |
Collection |
values()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public COSDictionaryMap(Map actualsMap, COSDictionary dicMap)
actualsMap
- The map with standard java objects as values.dicMap
- The map with COSBase objects as values.Method Detail |
public int size()
size
in interface Map
Map.size()
public boolean isEmpty()
isEmpty
in interface Map
Map.isEmpty()
public boolean containsKey(Object key)
containsKey
in interface Map
java.util.Map#containsKey()
public boolean containsValue(Object value)
containsValue
in interface Map
java.util.Map#containsValue()
public Object get(Object key)
get
in interface Map
java.util.Map#get()
public Object put(Object key, Object value)
put
in interface Map
java.util.Map#put()
public Object remove(Object key)
remove
in interface Map
java.util.Map#remove()
public void putAll(Map t)
putAll
in interface Map
java.util.Map#putAll()
public void clear()
clear
in interface Map
Map.clear()
public Set keySet()
keySet
in interface Map
Map.keySet()
public Collection values()
values
in interface Map
Map.values()
public Set entrySet()
entrySet
in interface Map
Map.entrySet()
public boolean equals(Object o)
equals
in interface Map
java.util.Map#equals()
public String toString()
public int hashCode()
hashCode
in interface Map
Map.hashCode()
public static COSDictionary convert(Map someMap)
someMap
- A map containing COSObjectables
public static COSDictionaryMap convertBasicTypesToMap(COSDictionary map) throws IOException
map
- The COS mappings.
IOException
- If there is an error during the conversion.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |