Class ASDictionary
- java.lang.Object
-
- com.adobe.internal.pdftoolkit.core.types.ASObject
-
- com.adobe.internal.pdftoolkit.core.types.ASDictionary
-
-
Constructor Summary
Constructors Constructor Description ASDictionary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<ASName,ASObject>>entrySet()booleanexists(ASName name)Returns true if this key exists in this dictionary else false.ASObjectget(Object key)ASArraygetArray(ASName key)ASBooleangetBoolean(ASName key)ASDictionarygetDictionary(ASName key)ASNamegetName(ASName key)ASNumbergetNumber(ASName key)ASStringgetString(ASName key)booleanisEmpty()Set<ASName>keySet()ASObjectput(ASName key, ASObject value)voidputAll(Map<? extends ASName,? extends ASObject> t)Objectremove(ASName name)Removes this key from the dictionary.ASObjectremove(Object key)ASObjectreplace(ASName name, ASObject clientObject)Replaces the "name" key value with the object passed.intsize()StringtoString()Collection<ASObject>values()voidwrite(OutputByteStream outputByteStream)Writes the ASDictionary in to the given OutputStream in the format expected by the PDF Spec.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replaceAll
-
-
-
-
Method Detail
-
replace
public ASObject replace(ASName name, ASObject clientObject)
Replaces the "name" key value with the object passed.
-
exists
public boolean exists(ASName name)
Returns true if this key exists in this dictionary else false.
-
write
public void write(OutputByteStream outputByteStream) throws PDFIOException
Writes the ASDictionary in to the given OutputStream in the format expected by the PDF Spec.- Specified by:
writein classASObject- Parameters:
outputByteStream- OutputByteStream to write to.- Throws:
PDFIOException
-
getNumber
public ASNumber getNumber(ASName key) throws PDFUnableToCompleteOperationException
-
getBoolean
public ASBoolean getBoolean(ASName key) throws PDFUnableToCompleteOperationException
-
getName
public ASName getName(ASName key) throws PDFUnableToCompleteOperationException
-
getString
public ASString getString(ASName key) throws PDFUnableToCompleteOperationException
-
getArray
public ASArray getArray(ASName key) throws PDFUnableToCompleteOperationException
-
getDictionary
public ASDictionary getDictionary(ASName key) throws PDFUnableToCompleteOperationException
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<ASName,ASObject>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<ASName,ASObject>
-
-