|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfclown.files.IndirectObjects
public final class IndirectObjects
Collection of the alive indirect objects available inside the file.
According to the PDF spec, indirect object entries may be free (no data object associated) or in-use (data object associated).
We can effectively subdivide indirect objects in two possibly-overriding collections: the original indirect objects (coming from the associated preexisting file) and the newly-registered indirect objects (coming from new data objects or original indirect objects manipulated during the current session).
To ensure that the modifications applied to an original indirect object are committed to being persistent is critical that the modified original indirect object is newly-registered (practically overriding the original indirect object).
Alive indirect objects encompass all the newly-registered ones plus not-overridden original ones.
| Method Summary | ||
|---|---|---|
void |
add(int index,
PdfIndirectObject object)
|
|
PdfIndirectObject |
add(PdfDataObject object)
Registers an internal data object. |
|
boolean |
add(PdfIndirectObject object)
Registers an external indirect object. |
|
boolean |
addAll(Collection<? extends PdfIndirectObject> objects)
Registers a collection of external indirect objects. |
|
boolean |
addAll(int index,
Collection<? extends PdfIndirectObject> objects)
|
|
Collection<? extends PdfIndirectObject> |
addExternal(Collection<? extends PdfIndirectObject> objects)
Registers a collection of external indirect objects. |
|
PdfIndirectObject |
addExternal(PdfIndirectObject object)
Registers an external indirect object. |
|
PdfIndirectObject |
addExternal(PdfIndirectObject object,
Cloner cloner)
Registers an external indirect object. |
|
PdfIndirectObject |
addVirtual(PdfIndirectObject object)
For internal use only. |
|
void |
clear()
|
|
boolean |
contains(Object object)
|
|
boolean |
containsAll(Collection<?> objects)
|
|
boolean |
equals(Object object)
|
|
PdfIndirectObject |
get(int index)
|
|
File |
getFile()
Gets the file associated to this collection. |
|
TreeMap<Integer,PdfIndirectObject> |
getModifiedObjects()
For internal use only. |
|
int |
hashCode()
|
|
int |
indexOf(Object object)
|
|
boolean |
isEmpty()
|
|
Iterator<PdfIndirectObject> |
iterator()
|
|
int |
lastIndexOf(Object object)
|
|
ListIterator<PdfIndirectObject> |
listIterator()
|
|
ListIterator<PdfIndirectObject> |
listIterator(int index)
|
|
PdfIndirectObject |
remove(int index)
|
|
boolean |
remove(Object object)
|
|
boolean |
removeAll(Collection<?> objects)
|
|
boolean |
retainAll(Collection<?> objects)
|
|
PdfIndirectObject |
set(int index,
PdfIndirectObject object)
|
|
int |
size()
Gets the number of entries available (both in-use and free) in the collection. |
|
List<PdfIndirectObject> |
subList(int fromIndex,
int toIndex)
|
|
PdfIndirectObject[] |
toArray()
|
|
|
toArray(T[] objects)
|
|
PdfIndirectObject |
update(PdfIndirectObject object)
For internal use only. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public PdfIndirectObject add(PdfDataObject object)
To register an external indirect object, use addExternal(PdfIndirectObject).
public PdfIndirectObject addExternal(PdfIndirectObject object)
External indirect objects come from alien PDF files; therefore, this is a powerful way to import contents from a file into another one.
To register an internal data object, use add(PdfDataObject).
object - External indirect object to import.
public PdfIndirectObject addExternal(PdfIndirectObject object,
Cloner cloner)
External indirect objects come from alien PDF files; therefore, this is a powerful way to import contents from a file into another one.
To register an internal data object, use add(PdfDataObject).
object - External indirect object to import.cloner - Import rules.
public Collection<? extends PdfIndirectObject> addExternal(Collection<? extends PdfIndirectObject> objects)
External indirect objects come from alien PDF files; therefore, this is a powerful way to import contents from a file into another one.
To register a collection of internal data objects, use #addAll(Collection.
public File getFile()
public void add(int index,
PdfIndirectObject object)
add in interface List<PdfIndirectObject>
public boolean addAll(int index,
Collection<? extends PdfIndirectObject> objects)
addAll in interface List<PdfIndirectObject>public PdfIndirectObject get(int index)
get in interface List<PdfIndirectObject>public int indexOf(Object object)
indexOf in interface List<PdfIndirectObject>public int lastIndexOf(Object object)
lastIndexOf in interface List<PdfIndirectObject>public ListIterator<PdfIndirectObject> listIterator()
listIterator in interface List<PdfIndirectObject>public ListIterator<PdfIndirectObject> listIterator(int index)
listIterator in interface List<PdfIndirectObject>public PdfIndirectObject remove(int index)
remove in interface List<PdfIndirectObject>
public PdfIndirectObject set(int index,
PdfIndirectObject object)
set in interface List<PdfIndirectObject>
public List<PdfIndirectObject> subList(int fromIndex,
int toIndex)
subList in interface List<PdfIndirectObject>public boolean add(PdfIndirectObject object)
External indirect objects come from alien PDF files; therefore, this is a powerful way to import contents from a file into another one.
To register and get an external indirect object, use addExternal(PdfIndirectObject).
add in interface Collection<PdfIndirectObject>add in interface List<PdfIndirectObject>public boolean addAll(Collection<? extends PdfIndirectObject> objects)
External indirect objects come from alien PDF files; therefore, this is a powerful way to import contents from a file into another one.
To register and get external indirect objects, use addExternal(Collection).
addAll in interface Collection<PdfIndirectObject>addAll in interface List<PdfIndirectObject>public void clear()
clear in interface Collection<PdfIndirectObject>clear in interface List<PdfIndirectObject>public boolean contains(Object object)
contains in interface Collection<PdfIndirectObject>contains in interface List<PdfIndirectObject>public boolean containsAll(Collection<?> objects)
containsAll in interface Collection<PdfIndirectObject>containsAll in interface List<PdfIndirectObject>public boolean equals(Object object)
equals in interface Collection<PdfIndirectObject>equals in interface List<PdfIndirectObject>equals in class Objectpublic int hashCode()
hashCode in interface Collection<PdfIndirectObject>hashCode in interface List<PdfIndirectObject>hashCode in class Objectpublic boolean isEmpty()
isEmpty in interface Collection<PdfIndirectObject>isEmpty in interface List<PdfIndirectObject>public boolean remove(Object object)
remove in interface Collection<PdfIndirectObject>remove in interface List<PdfIndirectObject>public boolean removeAll(Collection<?> objects)
removeAll in interface Collection<PdfIndirectObject>removeAll in interface List<PdfIndirectObject>public boolean retainAll(Collection<?> objects)
retainAll in interface Collection<PdfIndirectObject>retainAll in interface List<PdfIndirectObject>public int size()
size in interface Collection<PdfIndirectObject>size in interface List<PdfIndirectObject>public PdfIndirectObject[] toArray()
toArray in interface Collection<PdfIndirectObject>toArray in interface List<PdfIndirectObject>public <T> T[] toArray(T[] objects)
toArray in interface Collection<PdfIndirectObject>toArray in interface List<PdfIndirectObject>public Iterator<PdfIndirectObject> iterator()
iterator in interface Iterable<PdfIndirectObject>iterator in interface Collection<PdfIndirectObject>iterator in interface List<PdfIndirectObject>public PdfIndirectObject addVirtual(PdfIndirectObject object)
public TreeMap<Integer,PdfIndirectObject> getModifiedObjects()
public PdfIndirectObject update(PdfIndirectObject object)
|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||