Package org.apache.pdfbox.cos
Class UnmodifiableCOSDictionary
java.lang.Object
org.apache.pdfbox.cos.COSBase
org.apache.pdfbox.cos.COSDictionary
org.apache.pdfbox.cos.UnmodifiableCOSDictionary
- All Implemented Interfaces:
COSUpdateInfo
,COSObjectable
An unmodifiable COSDictionary.
-
Field Summary
Fields inherited from class org.apache.pdfbox.cos.COSDictionary
items
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
mergeInto
(COSDictionary dic) This will add all of the dictionaries keys/values to this dictionary, but only if they don't already exist.void
setNeedToBeUpdated
(boolean flag) Set the update state of the dictionary for the COSWriter.Methods inherited from class org.apache.pdfbox.cos.COSDictionary
accept, addAll, asUnmodifiableDictionary, clear, containsKey, containsKey, containsValue, entrySet, getBoolean, getBoolean, getBoolean, getCOSArray, getCOSDictionary, getCOSName, getCOSName, getCOSObject, getCOSStream, getDate, getDate, getDate, getDate, getDictionaryObject, getDictionaryObject, getDictionaryObject, getDictionaryObject, getEmbeddedDate, getEmbeddedDate, getEmbeddedDate, getEmbeddedDate, getEmbeddedInt, getEmbeddedInt, getEmbeddedInt, getEmbeddedInt, getEmbeddedString, getEmbeddedString, getEmbeddedString, getEmbeddedString, getFlag, getFloat, getFloat, getFloat, getFloat, getInt, getInt, getInt, getInt, getInt, getInt, getInt, getItem, getItem, getItem, getKeyForValue, getLong, getLong, getLong, getLong, getLong, getNameAsString, getNameAsString, getNameAsString, getNameAsString, getObjectFromPath, getString, getString, getString, getString, getValues, isNeedToBeUpdated, keySet, removeItem, setBoolean, setBoolean, setDate, setDate, setEmbeddedDate, setEmbeddedDate, setEmbeddedInt, setEmbeddedInt, setEmbeddedString, setEmbeddedString, setFlag, setFloat, setFloat, setInt, setInt, setItem, setItem, setItem, setItem, setLong, setLong, setName, setName, setString, setString, size, toString
Methods inherited from class org.apache.pdfbox.cos.COSBase
getCOSObject, isDirect, setDirect
-
Constructor Details
-
UnmodifiableCOSDictionary
UnmodifiableCOSDictionary(COSDictionary dict)
-
-
Method Details
-
mergeInto
This will add all of the dictionaries keys/values to this dictionary, but only if they don't already exist. If a key already exists in this dictionary then nothing is changed.- Overrides:
mergeInto
in classCOSDictionary
- Parameters:
dic
- The dictionaries to get the keys from.
-
setNeedToBeUpdated
public void setNeedToBeUpdated(boolean flag) Set the update state of the dictionary for the COSWriter. This indicates whether an object is to be written when there is an incremental save.- Specified by:
setNeedToBeUpdated
in interfaceCOSUpdateInfo
- Overrides:
setNeedToBeUpdated
in classCOSDictionary
- Parameters:
flag
- the update state.
-