| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final COSUpdateState |
| Access | Constructor and Description |
|---|---|
| public | |
| public | COSArray(List<? extends COSObjectable>
the initial list of COSObjectables cosObjectables)Use the given list to initialize the COSArray. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(ICOSVisitor
The object to notify when visiting this object. visitor)Implements abstract org. Visitor pattern double dispatch method. |
| public void | |
| public void | |
| public void | |
| public void | addAll(Collection<COSBase>
The object to add to the array. objectsList)This will add an object to the array. |
| public void | |
| public void | addAll(int
The index to add at. i, Collection<COSBase> The object to add at that index. objectList)Add the specified object at the ith location and push the rest to the right. |
| public void | |
| public COSBase | Returns: The object at the requested index.The index into the array to get the object. index)This will get an object from the array. |
| public void | getIndirectObjectKeys(List<COSObjectKey>
a list of already found indirect objects. indirectObjects)
Deprecated
use
getIndirectObjectKeys(Collection) instead
Collects all indirect objects numbers within this COSArray and all included dictionaries. |
| public void | getIndirectObjectKeys(Collection<COSObjectKey>
a collection of already found indirect objects. indirectObjects)Collects all indirect objects numbers within this COSArray and all included dictionaries. |
| public int | Returns: The value at that index or -1 if does not exist.The index into the list. index)Get the value of the array as an integer. |
| public int | Returns: The value at the index or the defaultValue.The value of the array. index, int The value to return if the value is null. defaultValue)Get the value of the array as an integer, return the default if it does not exist. |
| public String | Returns: The name converted to a string or null if it does not exist.The index into the array. index)Get the value of the array as a string. |
| public String | |
| public COSBase | Returns: The object at the requested index.The index into the array to get the object. index)This will get an object from the array. |
| public String | Returns: The string or null if it does not exist.The index into the array. index)Get the value of the array as a string. |
| public String | |
| public COSUpdateState | getUpdateState()
Implements org. Returns the current |
| public void | growToSize(int
The desired size of the array. size)This will add null values until the size of the array is at least as large as the parameter. |
| public void | growToSize(int
The desired size of the array. size, COSBase The object to fill the array with. object)This will add the object until the size of the array is at least as large as the parameter. |
| public int | |
| public int | Returns: The index of the object or -1.The object to search for. object)This will return the index of the entry or -1 if it is not found. |
| public Iterator | Returns: an iterator over the array elementsImplements java. Get access to the list. |
| public static COSArray | Returns: An array of COSInteger objectsA list of integers integer)This will take a list of integer objects and return a COSArray of COSInteger objects. |
| public static COSArray | Returns: An array of COSName objectsA list of strings strings)This will take a list of string objects and return a COSArray of COSName objects. |
| public static COSArray | Returns: An array of COSName objectsA list of strings strings)This will take a list of string objects and return a COSArray of COSName objects. |
| public COSBase | Returns: The object that was removed.The index of the object to remove. i)This will remove an element from the array. |
| public boolean | |
| public void | removeAll(Collection<COSBase>
The list of objects to remove from the collection. objectsList)This will remove all of the objects in the collection. |
| public boolean | Returns: true if the object was removed, false
otherwiseThe object to remove. o)This will remove an element from the array. |
| public void | retainAll(Collection<COSBase>
The list of objects to retain from the collection. objectsList)This will retain all of the objects in the collection. |
| public void | |
| public void | set(int
zero based index into array. index, int The object to set. intVal)This will set an object at a specific index. |
| public void | set(int
zero based index into array. index, COSObjectable The object to set. object)This will set an object at a specific index. |
| public void | setFloatArray(float[]
The new value of the float array. value)Clear the current contents of the COSArray and set it with the float[]. |
| public void | setInt(int
The index into the array. index, int The value to set. value)Set the value in the array as an integer. |
| public void | |
| public void | |
| public int | |
| public List | Returns: the list of names of the COSArray of COSNamesThis will return a list of names if the COSArray consists of COSNames only. |
| public List | Returns: the list of float values of the COSArray of COSNumbersThis will return a list of float values if the COSArray consists of COSNumbers only. |
| public List | Returns: the list of int values of the COSArray of COSNumbersThis will return a list of int values if the COSArray consists of COSNumbers only. |
| public List | Returns: the list of names of the COSArray of COSStringsThis will return a list of names if the COSArray consists of COSStrings only. |
| public float[] | Returns: This COSArray as an array of float numbers.This will take an COSArray of numbers and convert it to a float[]. |
| public List | |
| public String |
| objects | back to summary |
|---|---|
| private final List<COSBase> objects | |
| updateState | back to summary |
|---|---|
| private final COSUpdateState updateState | |
| COSArray | back to summary |
|---|---|
| public COSArray() Constructor. | |
| COSArray | back to summary |
|---|---|
| public COSArray(List<? extends COSObjectable> cosObjectables) Use the given list to initialize the COSArray.
| |
| accept | back to summary |
|---|---|
| public void accept(ICOSVisitor visitor) throws IOException Implements abstract org. Visitor pattern double dispatch method.
| |
| add | back to summary |
|---|---|
| public void add(COSBase object) This will add an object to the array.
| |
| add | back to summary |
|---|---|
| public void add(COSObjectable object) This will add an object to the array.
| |
| add | back to summary |
|---|---|
| public void add(int i, COSBase object) Add the specified object at the ith location and push the rest to the right.
| |
| addAll | back to summary |
|---|---|
| public void addAll(Collection<COSBase> objectsList) This will add an object to the array.
| |
| addAll | back to summary |
|---|---|
| public void addAll(COSArray objectList) This will add all objects to this array.
| |
| addAll | back to summary |
|---|---|
| public void addAll(int i, Collection<COSBase> objectList) Add the specified object at the ith location and push the rest to the right.
| |
| clear | back to summary |
|---|---|
| public void clear() This will remove all of the objects in the collection. | |
| get | back to summary |
|---|---|
| public COSBase get(int index) This will get an object from the array. This will NOT dereference the COS object.
| |
| getIndirectObjectKeys | back to summary |
|---|---|
| public void getIndirectObjectKeys(List<COSObjectKey> indirectObjects)
Deprecated use Collects all indirect objects numbers within this COSArray and all included dictionaries. It is used to avoid mixed up object numbers when importing an existing page to another pdf. Expert use only. You might run into an endless recursion if choosing a wrong starting point.
| |
| getIndirectObjectKeys | back to summary |
|---|---|
| public void getIndirectObjectKeys(Collection<COSObjectKey> indirectObjects) Collects all indirect objects numbers within this COSArray and all included dictionaries. It is used to avoid mixed up object numbers when importing an existing page to another pdf. Expert use only. You might run into an endless recursion if choosing a wrong starting point.
| |
| getInt | back to summary |
|---|---|
| public int getInt(int index) Get the value of the array as an integer.
| |
| getInt | back to summary |
|---|---|
| public int getInt(int index, int defaultValue) Get the value of the array as an integer, return the default if it does not exist.
| |
| getName | back to summary |
|---|---|
| public String getName(int index) Get the value of the array as a string.
| |
| getName | back to summary |
|---|---|
| public String getName(int index, String defaultValue) Get an entry in the array that is expected to be a COSName. | |
| getObject | back to summary |
|---|---|
| public COSBase getObject(int index) This will get an object from the array. This will dereference the object. If the object is COSNull then null will be returned.
| |
| getString | back to summary |
|---|---|
| public String getString(int index) Get the value of the array as a string.
| |
| getString | back to summary |
|---|---|
| public String getString(int index, String defaultValue) Get an entry in the array that is expected to be a COSName. | |
| getUpdateState | back to summary |
|---|---|
| public COSUpdateState getUpdateState() Implements org. Returns the current
| |
| growToSize | back to summary |
|---|---|
| public void growToSize(int size) This will add null values until the size of the array is at least as large as the parameter. If the array is already larger than the parameter then nothing is done.
| |
| growToSize | back to summary |
|---|---|
| public void growToSize(int size, COSBase object) This will add the object until the size of the array is at least as large as the parameter. If the array is already larger than the parameter then nothing is done.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(COSBase object) This will return the index of the entry or -1 if it is not found.
| |
| indexOfObject | back to summary |
|---|---|
| public int indexOfObject(COSBase object) This will return the index of the entry or -1 if it is not found. This method will also find references to indirect objects.
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Get access to the list. | |
| ofCOSIntegers | back to summary |
|---|---|
| public static COSArray ofCOSIntegers(List<Integer> integer) This will take a list of integer objects and return a COSArray of COSInteger objects. | |
| ofCOSNames | back to summary |
|---|---|
| public static COSArray ofCOSNames(List<String> strings) This will take a list of string objects and return a COSArray of COSName objects. | |
| ofCOSStrings | back to summary |
|---|---|
| public static COSArray ofCOSStrings(List<String> strings) This will take a list of string objects and return a COSArray of COSName objects. | |
| remove | back to summary |
|---|---|
| public COSBase remove(int i) This will remove an element from the array.
| |
| remove | back to summary |
|---|---|
| public boolean remove(COSBase o) This will remove an element from the array.
| |
| removeAll | back to summary |
|---|---|
| public void removeAll(Collection<COSBase> objectsList) This will remove all of the objects in the collection.
| |
| removeObject | back to summary |
|---|---|
| public boolean removeObject(COSBase o) This will remove an element from the array. This method will also remove a reference to the object.
| |
| retainAll | back to summary |
|---|---|
| public void retainAll(Collection<COSBase> objectsList) This will retain all of the objects in the collection.
| |
| set | back to summary |
|---|---|
| public void set(int index, COSBase object) This will set an object at a specific index.
| |
| set | back to summary |
|---|---|
| public void set(int index, int intVal) This will set an object at a specific index.
| |
| set | back to summary |
|---|---|
| public void set(int index, COSObjectable object) This will set an object at a specific index.
| |
| setFloatArray | back to summary |
|---|---|
| public void setFloatArray(float[] value) Clear the current contents of the COSArray and set it with the float[].
| |
| setInt | back to summary |
|---|---|
| public void setInt(int index, int value) Set the value in the array as an integer.
| |
| setName | back to summary |
|---|---|
| public void setName(int index, String name) Set the value in the array as a name.
| |
| setString | back to summary |
|---|---|
| public void setString(int index, String string) Set the value in the array as a string.
| |
| size | back to summary |
|---|---|
| public int size() This will get the size of this array.
| |
| toCOSNameStringList | back to summary |
|---|---|
| public List This will return a list of names if the COSArray consists of COSNames only. | |
| toCOSNumberFloatList | back to summary |
|---|---|
| public List This will return a list of float values if the COSArray consists of COSNumbers only. | |
| toCOSNumberIntegerList | back to summary |
|---|---|
| public List This will return a list of int values if the COSArray consists of COSNumbers only. | |
| toCOSStringStringList | back to summary |
|---|---|
| public List This will return a list of names if the COSArray consists of COSStrings only. | |
| toFloatArray | back to summary |
|---|---|
| public float[] toFloatArray() This will take an COSArray of numbers and convert it to a float[].
| |
| toList | back to summary |
|---|---|
| public List Return contents of COSArray as a Java List. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |