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(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<ASName,ASObject>>entrySet()booleanexists(ASName name)Returns true if this key exists in this dictionary else false.ASObjectget(java.lang.Object key)ASArraygetArray(ASName key)ASBooleangetBoolean(ASName key)ASDictionarygetDictionary(ASName key)ASNamegetName(ASName key)ASNumbergetNumber(ASName key)ASStringgetString(ASName key)booleanisEmpty()java.util.Set<ASName>keySet()ASObjectput(ASName key, ASObject value)voidputAll(java.util.Map<? extends ASName,? extends ASObject> t)java.lang.Objectremove(ASName name)Removes this key from the dictionary.ASObjectremove(java.lang.Object key)ASObjectreplace(ASName name, ASObject clientObject)Replaces the "name" key value with the object passed.intsize()java.lang.StringtoString()java.util.Collection<ASObject>values()voidwrite(OutputByteStream outputByteStream)Writes the ASDictionary in to the given OutputStream in the format expected by the PDF Spec.
-
-
-
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.
-
remove
public java.lang.Object remove(ASName name)
Removes this key from the dictionary.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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(java.lang.Object key)
-
containsValue
public boolean containsValue(java.lang.Object value)
-
values
public java.util.Collection<ASObject> values()
-
keySet
public java.util.Set<ASName> keySet()
-
get
public ASObject get(java.lang.Object key)
-
remove
public ASObject remove(java.lang.Object key)
-
-