|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFArray
public class PDFArray
Class representing an array object.
| Field Summary | |
|---|---|
protected java.util.List<java.lang.Object> |
values
List holding the values of this array |
| Fields inherited from class org.apache.fop.pdf.PDFObject |
|---|
log |
| Constructor Summary | |
|---|---|
PDFArray()
Create a new, empty array object with no parent. |
|
PDFArray(java.lang.Object... elements)
Creates an array object made of the given elements. |
|
PDFArray(PDFObject parent)
Create a new, empty array object |
|
PDFArray(PDFObject parent,
double[] values)
Create an array object. |
|
PDFArray(PDFObject parent,
int[] values)
Create an array object. |
|
PDFArray(PDFObject parent,
java.util.List<?> values)
Create an array object. |
|
PDFArray(PDFObject parent,
java.lang.Object[] values)
Create the array object |
|
| Method Summary | |
|---|---|
void |
add(double value)
Adds a new value to the array. |
void |
add(java.lang.Object obj)
Adds a new value to the array. |
void |
clear()
Clears the PDF array. |
boolean |
contains(java.lang.Object obj)
Indicates whether the given object exists in the array. |
java.lang.Object |
get(int index)
Gets an entry at a given location. |
int |
length()
Returns the length of the array |
int |
output(java.io.OutputStream stream)
Write the PDF represention of this object |
void |
set(int index,
double value)
Sets an entry at a given location. |
void |
set(int index,
java.lang.Object obj)
Sets an entry at a given location. |
| Methods inherited from class org.apache.fop.pdf.PDFObject |
|---|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<java.lang.Object> values
| Constructor Detail |
|---|
public PDFArray(PDFObject parent)
parent - the array's parent if anypublic PDFArray()
public PDFArray(PDFObject parent,
int[] values)
parent - the array's parent if anyvalues - the actual array wrapped by this object
public PDFArray(PDFObject parent,
double[] values)
parent - the array's parent if anyvalues - the actual array wrapped by this object
public PDFArray(PDFObject parent,
java.util.List<?> values)
parent - the array's parent if anyvalues - the actual values wrapped by this objectpublic PDFArray(java.lang.Object... elements)
elements - the array content
public PDFArray(PDFObject parent,
java.lang.Object[] values)
parent - the array's parent if anyvalues - the actual array wrapped by this object| Method Detail |
|---|
public boolean contains(java.lang.Object obj)
obj - the object to look for
public int length()
public void set(int index,
java.lang.Object obj)
index - the index of the value to setobj - the new value
public void set(int index,
double value)
index - the index of the value to setvalue - the new valuepublic java.lang.Object get(int index)
index - the index of the value to set
public void add(java.lang.Object obj)
obj - the valuepublic void add(double value)
value - the valuepublic void clear()
public int output(java.io.OutputStream stream)
throws java.io.IOException
output in class PDFObjectstream - the stream to write the PDF to
java.io.IOException - if there is an error writing to the stream
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||