com.lowagie.text.pdf
public class PdfArray extends PdfObject
PdfArray is the PDF Array object.
An array is a sequence of PDF objects. An array may contain a mixture of object types.
An array is written as a left square bracket ([), followed by a sequence of objects,
followed by a right square bracket (]).
This object is described in the 'Portable Document Format Reference Manual version 1.7'
section 3.2.5 (page 58).
See Also: PdfObject
| Field Summary | |
|---|---|
| protected ArrayList | arrayList this is the actual array of PdfObjects |
| Constructor Summary | |
|---|---|
| PdfArray()
Constructs an empty PdfArray-object. | |
| PdfArray(PdfObject object)
Constructs an PdfArray-object, containing 1 PdfObject.
| |
| PdfArray(float[] values) | |
| PdfArray(int[] values) | |
| PdfArray(ArrayList l)
Constructs a PdfArray with the elements of an ArrayList.
| |
| PdfArray(PdfArray array)
Constructs an PdfArray-object, containing all the PdfObjects in a given PdfArray.
| |
| Method Summary | |
|---|---|
| boolean | add(PdfObject object)
Adds a PdfObject to the PdfArray.
|
| boolean | add(float[] values) |
| boolean | add(int[] values) |
| void | addFirst(PdfObject object)
Adds a PdfObject to the PdfArray.
|
| boolean | contains(PdfObject object)
Checks if the PdfArray already contains a certain PdfObject.
|
| ArrayList | getArrayList()
Returns an ArrayList containing PdfObjects.
|
| PdfArray | getAsArray(int idx) |
| PdfBoolean | getAsBoolean(int idx) |
| PdfDictionary | getAsDict(int idx) |
| PdfIndirectReference | getAsIndirectObject(int idx) |
| PdfName | getAsName(int idx) |
| PdfNumber | getAsNumber(int idx) |
| PdfStream | getAsStream(int idx) |
| PdfString | getAsString(int idx) |
| PdfObject | getDirectObject(int idx) |
| PdfObject | getPdfObject(int idx) |
| ListIterator | listIterator() |
| int | size()
Returns the number of entries in the array.
|
| void | toPdf(PdfWriter writer, OutputStream os)
Returns the PDF representation of this PdfArray. |
| String | toString() |
PdfArray-object.PdfArray-object, containing 1 PdfObject.
Parameters: object a PdfObject that has to be added to the array
Parameters: l an ArrayList with PdfObjects
Since: 2.1.3
PdfArray-object, containing all the PdfObjects in a given PdfArray.
Parameters: array a PdfArray that has to be added to the array
PdfObject to the PdfArray.
Parameters: object PdfObject to add
Returns: true
PdfObject to the PdfArray.
The newly added object will be the first element in the ArrayList.
Parameters: object PdfObject to add
PdfArray already contains a certain PdfObject.
Parameters: object PdfObject to check
Returns: true
PdfObjects.
Returns: an ArrayList
Returns: the size of the ArrayList
PdfArray.