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.3'
section 4.6 (page 40).
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(PdfArray array)
Constructs an PdfArray -object, containing all the PdfObject s 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 PdfObject s.
|
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
PdfArray
-object, containing all the PdfObject
s 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
PdfObject
s.
Returns: an ArrayList
Returns: the size of the ArrayList
PdfArray
.
Returns: an array of byte
s