| java.lang.Object it.stefanochizzolini.clown.files.IndirectObjects
IndirectObjects | public class IndirectObjects implements List<PdfIndirectObject>(Code) | | Collection of the alive indirect objects available inside the file.
Remarks
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.
version: 0.0.5 since: 0.0.0 |
add | public boolean add(PdfIndirectObject object)(Code) | | Registers an external indirect object.
Remarks
External indirect objects come from alien PDF files. This is a powerful
way to import the content of one file into another.
Alternatives:
|
addAll | public boolean addAll(Collection<? extends PdfIndirectObject> objects)(Code) | | Registers external indirect objects.
Remarks
External indirect objects come from alien PDF files. This is a powerful
way to import the content of one file into another.
Alternatives:
|
addExternal | public PdfIndirectObject addExternal(PdfIndirectObject object)(Code) | | Registers and gets an external indirect object.
Remarks
External indirect objects come from alien PDF files. This is a powerful
way to import the content of one file into another.
Alternatives:
|
clear | public void clear()(Code) | | |
get | public PdfIndirectObject get(int index)(Code) | | Gets an indirect object with the specified object number.
Parameters: index - Object number of the indirect object to get. Indirect object corresponding to the specified object number. |
hashCode | public int hashCode()(Code) | | |
isEmpty | public boolean isEmpty()(Code) | | |
remove | public boolean remove(Object object)(Code) | | version: 0.0.5 since: 0.0.0 |
set | public PdfIndirectObject set(int index, PdfIndirectObject object)(Code) | | Sets an indirect object with the specified object number.
Contract
- Preconditions:
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].
- Postconditions:
- (none).
- Invariants:
- (none).
- Side-effects:
- (none).
Remarks
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:
Parameters: index - Object number of the indirect object to set. Parameters: object - Indirect object to set. Replaced indirect object. |
size | public int size()(Code) | | Gets the number of entries available (both in-use and free) in the
collection.
The number of entries available in the collection. |
|
|