|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.stefanochizzolini.clown.files.IndirectObjects
public 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)
Register an internal data object. |
|
boolean |
add(PdfIndirectObject object)
Registers an external indirect object. |
|
boolean |
addAll(Collection<? extends PdfIndirectObject> objects)
Registers external indirect objects. |
|
boolean |
addAll(int index,
Collection<? extends PdfIndirectObject> objects)
|
|
Collection<? extends PdfIndirectObject> |
addAllExternal(Collection<? extends PdfIndirectObject> objects)
|
|
PdfIndirectObject |
addExternal(PdfIndirectObject object)
Registers and gets an external indirect object. |
|
void |
clear()
|
|
boolean |
contains(Object object)
|
|
boolean |
containsAll(Collection<?> objects)
|
|
boolean |
equals(Object object)
|
|
PdfIndirectObject |
get(int index)
Gets an indirect object with the specified object number. |
|
File |
getFile()
|
|
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)
Sets an indirect object with the specified object number. |
|
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 File getFile()
public PdfIndirectObject add(PdfDataObject object)
Alternatives:
set(int,PdfIndirectObject)
.addExternal(PdfIndirectObject)
.
public PdfIndirectObject addExternal(PdfIndirectObject object)
External indirect objects come from alien PDF files. This is a powerful way to import the content of one file into another.
Alternatives:
set(int,PdfIndirectObject)
.add(PdfDataObject)
.
public Collection<? extends PdfIndirectObject> addAllExternal(Collection<? extends PdfIndirectObject> objects)
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>
index
- Object number of the indirect object to get.
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)
index
value MUST be between 1 and (size() - 1); index 0
is reserved to the mandatory head of the linked list of free objects [PDF:1.6:3.4.3].This method is currently limited to internal indirect objects: use it to register modified internal indirect objects only. If you need to register alternative-type objects, consider the following methods:
addExternal(PdfIndirectObject)
.add(PdfDataObject)
.
set
in interface List<PdfIndirectObject>
index
- Object number of the indirect object to set.object
- Indirect object to set.
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. This is a powerful way to import the content of one file into another.
Alternatives:
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. This is a powerful way to import the content of one file into another.
Alternatives:
addAllExternal(Collection extends PdfIndirectObject>)
.
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 Object
public int hashCode()
hashCode
in interface Collection<PdfIndirectObject>
hashCode
in interface List<PdfIndirectObject>
hashCode
in class Object
public 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 TreeMap<Integer,PdfIndirectObject> getModifiedObjects()
public PdfIndirectObject update(PdfIndirectObject object)
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |