|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfArray
public class PdfArray
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).
PdfObject
Field Summary | |
---|---|
protected ArrayList |
arrayList
this is the actual array of PdfObjects |
Fields inherited from class com.lowagie.text.pdf.PdfObject |
---|
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Constructor Summary | |
---|---|
PdfArray()
Constructs an empty PdfArray -object. |
|
PdfArray(float[] values)
|
|
PdfArray(int[] values)
|
|
PdfArray(PdfArray array)
Constructs an PdfArray -object, containing all the PdfObject s in a given PdfArray . |
|
PdfArray(PdfObject object)
Constructs an PdfArray -object, containing 1 PdfObject . |
Method Summary | |
---|---|
boolean |
add(float[] values)
|
boolean |
add(int[] values)
|
boolean |
add(PdfObject object)
Adds a PdfObject to the PdfArray . |
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()
Returns the String -representation of this PdfObject . |
Methods inherited from class com.lowagie.text.pdf.PdfObject |
---|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ArrayList arrayList
Constructor Detail |
---|
public PdfArray()
PdfArray
-object.
public PdfArray(PdfObject object)
PdfArray
-object, containing 1 PdfObject
.
object
- a PdfObject
that has to be added to the arraypublic PdfArray(float[] values)
public PdfArray(int[] values)
public PdfArray(PdfArray array)
PdfArray
-object, containing all the PdfObject
s in a given PdfArray
.
array
- a PdfArray
that has to be added to the arrayMethod Detail |
---|
public void toPdf(PdfWriter writer, OutputStream os) throws IOException
PdfArray
.
toPdf
in class PdfObject
writer
- for backwards compatibilityos
- the outputstream to write the bytes to.
IOException
public ArrayList getArrayList()
PdfObject
s.
public int size()
public boolean add(PdfObject object)
PdfObject
to the PdfArray
.
object
- PdfObject
to add
true
public boolean add(float[] values)
public boolean add(int[] values)
public void addFirst(PdfObject object)
PdfObject
to the PdfArray
.
The newly added object will be the first element in the ArrayList
.
object
- PdfObject
to addpublic boolean contains(PdfObject object)
PdfArray
already contains a certain PdfObject
.
object
- PdfObject
to check
true
public ListIterator listIterator()
public String toString()
PdfObject
String
-representation of this PdfObject
.
toString
in class PdfObject
String
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |