org.apache.fop.pdf
Class PDFArray
- PDFWritable
Class representing an array object.
protected List | values - List holding the values of this array
|
void | add(Object obj) - Adds a new value to the array.
|
void | add(double value) - Adds a new value to the array.
|
Object | get(int index) - Gets an entry at a given location.
|
int | length() - Returns the length of the array
|
protected int | output(OutputStream stream) -
|
void | set(int index, Object obj) - Sets an entry at a given location.
|
void | set(int index, double value) - Sets an entry at a given location.
|
encode , encodeBinaryToHexString , encodeString , encodeText , formatDateTime , formatDateTime , formatObject , getDocument , getDocumentSafely , getGeneration , getObjectID , getObjectNumber , getParent , hasObjectNumber , makeReference , output , outputInline , referencePDF , setDocument , setObjectNumber , setParent , toPDF , toPDFString |
values
protected List values
List holding the values of this array
PDFArray
public PDFArray()
Create a new, empty array object with no parent.
PDFArray
public PDFArray(PDFObject parent)
Create a new, empty array object
parent
- the array's parent if any
PDFArray
public PDFArray(PDFObject parent,
Collection values)
Create an array object.
parent
- the array's parent if anyvalues
- the actual values wrapped by this object
PDFArray
public PDFArray(PDFObject parent,
Object[] values)
Create the array object
parent
- the array's parent if anyvalues
- the actual array wrapped by this object
PDFArray
public PDFArray(PDFObject parent,
double[] values)
Create an array object.
parent
- the array's parent if anyvalues
- the actual array wrapped by this object
PDFArray
public PDFArray(PDFObject parent,
int[] values)
Create an array object.
parent
- the array's parent if anyvalues
- the actual array wrapped by this object
add
public void add(Object obj)
Adds a new value to the array.
add
public void add(double value)
Adds a new value to the array.
get
public Object get(int index)
Gets an entry at a given location.
index
- the index of the value to set
length
public int length()
Returns the length of the array
output
protected int output(OutputStream stream)
throws IOException
- output in interface PDFObject
set
public void set(int index,
Object obj)
Sets an entry at a given location.
index
- the index of the value to setobj
- the new value
set
public void set(int index,
double value)
Sets an entry at a given location.
index
- the index of the value to setvalue
- the new value
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.