PDFWritable
PDFCIELabColorSpace
, PDFSeparationColorSpace
public class PDFArray extends PDFObject
Modifier and Type | Field | Description |
---|---|---|
protected java.util.List<java.lang.Object> |
values |
List holding the values of this array
|
Constructor | Description |
---|---|
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(java.util.List<?> 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.lang.Object[] values) |
Create the array object
|
PDFArray(PDFObject parent,
java.util.List<?> values) |
Create an array object.
|
Modifier and Type | Method | Description |
---|---|---|
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.
|
void |
getChildren(java.util.Set<PDFObject> children) |
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
protected java.util.List<java.lang.Object> values
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 objectpublic PDFArray(PDFObject parent, double[] values)
parent
- the array's parent if anyvalues
- the actual array wrapped by this objectpublic 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 contentpublic PDFArray(java.util.List<?> elements)
elements
- the array contentpublic PDFArray(PDFObject parent, java.lang.Object[] values)
parent
- the array's parent if anyvalues
- the actual array wrapped by this objectpublic boolean contains(java.lang.Object obj)
obj
- the object to look forpublic int length()
public void set(int index, java.lang.Object obj)
index
- the index of the value to setobj
- the new valuepublic 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 setpublic 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
public void getChildren(java.util.Set<PDFObject> children)
getChildren
in class PDFObject
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.