Example usage for Java org.apache.pdfbox.cos COSDictionary fields, constructors, methods, implement or subclass
The text is from its open source code.
COSDictionary() Constructor. | |
COSDictionary(COSDictionary dict) Copy Constructor. |
Object | accept(ICOSVisitor visitor) visitor pattern double dispatch method. |
COSDictionary | asUnmodifiableDictionary() Returns an unmodifiable view of this dictionary. |
boolean | containsKey(COSName name) |
boolean | containsKey(String name) |
boolean | containsValue(Object value) |
Set | entrySet() Returns the name-value entries in this dictionary. |
COSName | getCOSName(COSName key) This is a convenience method that will get the dictionary object that is expected to be a name. |
COSBase | getCOSObject() Convert this standard java object to a COS object. |
Calendar | getDate(String key) This is a convenience method that will get the dictionary object that is expected to be a name and convert it to a string. |
Calendar | getDate(COSName key) This is a convenience method that will get the dictionary object that is expected to be a name and convert it to a string. |
COSBase | getDictionaryObject(String key) This will get an object from this dictionary. |
COSBase | getDictionaryObject(COSName key) This will get an object from this dictionary. |
int | getInt(String key) This is a convenience method that will get the dictionary object that is expected to be an int. |
int | getInt(COSName key) This is a convenience method that will get the dictionary object that is expected to be an int. |
int | getInt(String key, int defaultValue) This is a convenience method that will get the dictionary object that is expected to be an integer. |
int | getInt(COSName key, int defaultValue) This is a convenience method that will get the dictionary object that is expected to be an integer. |
int | getInt(COSName firstKey, COSName secondKey) This is a convenience method that will get the dictionary object that is expected to be an integer. |
COSBase | getItem(COSName key) This will do a lookup into the dictionary. |
COSBase | getItem(String key) This will do a lookup into the dictionary. |
COSName | getKeyForValue(Object value) Search in the map for the value that matches the parameter and return the first key that maps to that value. |
long | getLong(String key) This is a convenience method that will get the dictionary object that is expected to be an long. |
long | getLong(COSName key) This is a convenience method that will get the dictionary object that is expected to be an long. |
String | getNameAsString(String key) This is a convenience method that will get the dictionary object that is expected to be a name and convert it to a string. |
String | getNameAsString(COSName key) This is a convenience method that will get the dictionary object that is expected to be a name and convert it to a string. |
COSBase | getObjectFromPath(String objPath) Nice method, gives you every object you want Arrays works properly too. |
String | getString(String key) This is a convenience method that will get the dictionary object that is expected to be a string. |
String | getString(COSName key) This is a convenience method that will get the dictionary object that is expected to be a string. |
Collection | getValues() This will get all of the values for the dictionary. |
boolean | isDirect() If the state is set true, the dictionary will be written direct into the called object. |
Set | keySet() Returns the names of the entries in this dictionary. |
void | removeItem(COSName key) This will remove an item for the dictionary. |
void | setBoolean(String key, boolean value) This will set an item in the dictionary. |
void | setBoolean(COSName key, boolean value) This will set an item in the dictionary. |
void | setDirect(boolean direct) Set the state true, if the dictionary should be written as a direct object and not indirect. |
void | setInt(String key, int value) This is a convenience method that will convert the value to a COSInteger object. |
void | setInt(COSName key, int value) This is a convenience method that will convert the value to a COSInteger object. |
void | setItem(COSName key, COSBase value) This will set an item in the dictionary. |
void | setItem(COSName key, COSObjectable value) This will set an item in the dictionary. |
void | setItem(String key, COSObjectable value) This will set an item in the dictionary. |
void | setItem(String key, COSBase value) This will set an item in the dictionary. |
void | setLong(String key, long value) This is a convenience method that will convert the value to a COSInteger object. |
void | setLong(COSName key, long value) This is a convenience method that will convert the value to a COSInteger object. |
void | setName(String key, String value) This is a convenience method that will convert the value to a COSName object. |
void | setName(COSName key, String value) This is a convenience method that will convert the value to a COSName object. |
void | setNeedToBeUpdated(boolean flag) |
void | setString(String key, String value) This is a convenience method that will convert the value to a COSString object. |
void | setString(COSName key, String value) This is a convenience method that will convert the value to a COSString object. |
int | size() This will return the number of elements in this dictionary. |
String | toString() |