|
fop 0.94 | |||||||||
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 |
values
List holding the values of this array |
Fields inherited from class org.apache.fop.pdf.PDFObject |
---|
DATE_FORMAT, log |
Constructor Summary | |
---|---|
PDFArray()
Create a new, empty array object |
|
PDFArray(java.util.Collection values)
Create the array object |
|
PDFArray(int[] values)
Create the array object |
|
PDFArray(java.lang.Object[] values)
Create the array object |
Method Summary | |
---|---|
void |
add(java.lang.Object obj)
Adds a new value to the array. |
java.lang.Object |
get(int index)
Gets an entry at a given location. |
int |
length()
Returns the length of the array |
void |
set(int index,
java.lang.Object obj)
Sets an entry at a given location. |
java.lang.String |
toPDFString()
This method returns a String representation of the PDF object. |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
encode, encodeString, encodeText, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, hasObjectNumber, makeReference, output, referencePDF, setDocument, setObjectNumber, toInlinePDFString, toPDF |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List values
Constructor Detail |
---|
public PDFArray()
public PDFArray(int[] values)
values
- the actual array wrapped by this objectpublic PDFArray(java.util.Collection values)
values
- the actual values wrapped by this objectpublic PDFArray(java.lang.Object[] values)
values
- the actual array wrapped by this objectMethod Detail |
---|
public int length()
public void set(int index, java.lang.Object obj)
index
- the index of the value to setobj
- 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 java.lang.String toPDFString()
PDFObject
toPDFString
in class PDFObject
PDFObject.toPDFString()
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |