|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pdfclown.objects.PdfObject org.pdfclown.objects.PdfDataObject org.pdfclown.objects.PdfDirectObject org.pdfclown.objects.PdfArray
public final class PdfArray
PDF array object, that is a one-dimensional collection of (possibly-heterogeneous) objects arranged sequentially [PDF:1.7:3.2.5].
Constructor Summary | |
---|---|
PdfArray()
|
|
PdfArray(int capacity)
|
|
PdfArray(List<? extends PdfDirectObject> items)
|
|
PdfArray(PdfDirectObject... items)
|
Method Summary | ||
---|---|---|
PdfObject |
accept(IVisitor visitor,
Object data)
Accepts a visit. |
|
void |
add(int index,
PdfDirectObject item)
|
|
boolean |
add(PdfDirectObject item)
|
|
boolean |
addAll(Collection<? extends PdfDirectObject> items)
|
|
boolean |
addAll(int index,
Collection<? extends PdfDirectObject> items)
|
|
void |
clear()
|
|
PdfArray |
clone(File context)
Creates a deep copy of this object within the specified file context. |
|
int |
compareTo(PdfDirectObject obj)
|
|
boolean |
contains(Object item)
|
|
boolean |
containsAll(Collection<?> items)
|
|
boolean |
equals(Object object)
|
|
PdfDirectObject |
get(int index)
|
|
|
get(int index,
Class<T> itemClass)
Gets the value corresponding to the given index, forcing its instantiation as a direct object in case of missing entry. |
|
|
get(int index,
Class<T> itemClass,
boolean direct)
Gets the value corresponding to the given index, forcing its instantiation in case of missing entry. |
|
PdfObject |
getParent()
Gets the parent of this object. |
|
int |
hashCode()
|
|
int |
indexOf(Object item)
|
|
boolean |
isEmpty()
|
|
boolean |
isUpdateable()
Gets whether the detection of object state changes is enabled. |
|
boolean |
isUpdated()
Gets whether the initial state of this object has been modified. |
|
protected boolean |
isVirtual()
Gets whether this object acts like a null-object placeholder. |
|
Iterator<PdfDirectObject> |
iterator()
|
|
int |
lastIndexOf(Object item)
|
|
ListIterator<PdfDirectObject> |
listIterator()
|
|
ListIterator<PdfDirectObject> |
listIterator(int index)
|
|
PdfDirectObject |
remove(int index)
|
|
boolean |
remove(Object item)
|
|
boolean |
removeAll(Collection<?> items)
|
|
PdfDataObject |
resolve(int index)
Gets the dereferenced value corresponding to the given index. |
|
|
resolve(int index,
Class<T> itemClass)
Gets the dereferenced value corresponding to the given index, forcing its instantiation in case of missing entry. |
|
boolean |
retainAll(Collection<?> items)
|
|
PdfDirectObject |
set(int index,
PdfDirectObject item)
|
|
void |
setUpdateable(boolean value)
|
|
protected void |
setUpdated(boolean value)
|
|
protected void |
setVirtual(boolean value)
|
|
int |
size()
|
|
List<PdfDirectObject> |
subList(int fromIndex,
int toIndex)
|
|
PdfArray |
swap(PdfObject other)
Swaps contents between this object and the other one. |
|
Object[] |
toArray()
|
|
|
toArray(T[] items)
|
|
String |
toString()
|
|
void |
writeTo(IOutputStream stream,
File context)
Serializes this object to the specified stream. |
Methods inherited from class org.pdfclown.objects.PdfObject |
---|
clone, clone, getContainer, getDataContainer, getFile, getIndirectObject, getReference, resolve, resolve, unresolve, unresolve, update |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PdfArray()
public PdfArray(int capacity)
public PdfArray(PdfDirectObject... items)
public PdfArray(List<? extends PdfDirectObject> items)
Method Detail |
---|
public PdfObject accept(IVisitor visitor, Object data)
IVisitable
accept
in interface IVisitable
visitor
- Visiting object.data
- Supplemental data.
public PdfArray clone(File context)
PdfObject
clone
in class PdfObject
public int compareTo(PdfDirectObject obj)
compareTo
in interface Comparable<PdfDirectObject>
compareTo
in class PdfDirectObject
public <T extends PdfDataObject> PdfDirectObject get(int index, Class<T> itemClass)
index
- Index of the item to return.itemClass
- Class to use for instantiating the item in case of missing entry.public <T extends PdfDataObject> PdfDirectObject get(int index, Class<T> itemClass, boolean direct)
index
- Index of the item to return.itemClass
- Class to use for instantiating the item in case of missing entry.direct
- Whether the item has to be instantiated directly within its container instead of
being referenced through an indirect object.public PdfObject getParent()
PdfObject
getParent
in class PdfObject
PdfObject.getContainer()
public boolean isUpdateable()
PdfObject
isUpdateable
in class PdfObject
public boolean isUpdated()
PdfObject
isUpdated
in class PdfObject
public PdfDataObject resolve(int index)
This method takes care to resolve the value returned by get(int)
.
index
- Index of the item to return.public <T extends PdfDataObject> T resolve(int index, Class<T> itemClass)
This method takes care to resolve the value returned by get(int, Class)
.
index
- Index of the item to return.itemClass
- Class to use for instantiating the item in case of missing entry.public void setUpdateable(boolean value)
setUpdateable
in class PdfObject
PdfObject.isUpdateable()
public PdfArray swap(PdfObject other)
PdfObject
swap
in class PdfObject
other
- Object whose contents have to be swapped with this one's.
public String toString()
toString
in class Object
public void writeTo(IOutputStream stream, File context)
PdfObject
writeTo
in class PdfObject
stream
- Target stream.context
- File context.public void add(int index, PdfDirectObject item)
add
in interface List<PdfDirectObject>
public boolean addAll(int index, Collection<? extends PdfDirectObject> items)
addAll
in interface List<PdfDirectObject>
public PdfDirectObject get(int index)
get
in interface List<PdfDirectObject>
public int indexOf(Object item)
indexOf
in interface List<PdfDirectObject>
public int lastIndexOf(Object item)
lastIndexOf
in interface List<PdfDirectObject>
public ListIterator<PdfDirectObject> listIterator()
listIterator
in interface List<PdfDirectObject>
public ListIterator<PdfDirectObject> listIterator(int index)
listIterator
in interface List<PdfDirectObject>
public PdfDirectObject remove(int index)
remove
in interface List<PdfDirectObject>
public PdfDirectObject set(int index, PdfDirectObject item)
set
in interface List<PdfDirectObject>
public List<PdfDirectObject> subList(int fromIndex, int toIndex)
subList
in interface List<PdfDirectObject>
public boolean add(PdfDirectObject item)
add
in interface Collection<PdfDirectObject>
add
in interface List<PdfDirectObject>
public boolean addAll(Collection<? extends PdfDirectObject> items)
addAll
in interface Collection<PdfDirectObject>
addAll
in interface List<PdfDirectObject>
public void clear()
clear
in interface Collection<PdfDirectObject>
clear
in interface List<PdfDirectObject>
public boolean contains(Object item)
contains
in interface Collection<PdfDirectObject>
contains
in interface List<PdfDirectObject>
public boolean containsAll(Collection<?> items)
containsAll
in interface Collection<PdfDirectObject>
containsAll
in interface List<PdfDirectObject>
public boolean equals(Object object)
equals
in interface Collection<PdfDirectObject>
equals
in interface List<PdfDirectObject>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<PdfDirectObject>
hashCode
in interface List<PdfDirectObject>
hashCode
in class Object
public boolean isEmpty()
isEmpty
in interface Collection<PdfDirectObject>
isEmpty
in interface List<PdfDirectObject>
public boolean remove(Object item)
remove
in interface Collection<PdfDirectObject>
remove
in interface List<PdfDirectObject>
public boolean removeAll(Collection<?> items)
removeAll
in interface Collection<PdfDirectObject>
removeAll
in interface List<PdfDirectObject>
public boolean retainAll(Collection<?> items)
retainAll
in interface Collection<PdfDirectObject>
retainAll
in interface List<PdfDirectObject>
public int size()
size
in interface Collection<PdfDirectObject>
size
in interface List<PdfDirectObject>
public Object[] toArray()
toArray
in interface Collection<PdfDirectObject>
toArray
in interface List<PdfDirectObject>
public <T> T[] toArray(T[] items)
toArray
in interface Collection<PdfDirectObject>
toArray
in interface List<PdfDirectObject>
public Iterator<PdfDirectObject> iterator()
iterator
in interface Iterable<PdfDirectObject>
iterator
in interface Collection<PdfDirectObject>
iterator
in interface List<PdfDirectObject>
protected boolean isVirtual()
PdfObject
isVirtual
in class PdfObject
protected void setUpdated(boolean value)
setUpdated
in class PdfObject
PdfObject.isUpdated()
protected void setVirtual(boolean value)
setVirtual
in class PdfObject
PdfObject.isVirtual()
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |