com.lowagie.rups.model
public class IndirectObjectFactory extends Object
Field Summary | |
---|---|
protected int | current The current xref number. |
protected IntHashtable | idxToRef Mapping between the index in the objects list and the reference number in the xref table. |
protected int | n The highest xref number. |
protected ArrayList<PdfObject> | objects A list of all the indirect objects in a PDF file. |
protected PdfReader | reader The reader object. |
protected IntHashtable | refToIdx Mapping between the reference number in the xref table and the index in the objects list . |
Constructor Summary | |
---|---|
IndirectObjectFactory(PdfReader reader)
Creates a list that will contain all the indirect objects
in a PDF document. |
Method Summary | |
---|---|
int | getCurrent()
Gets the last object that has been registered.
|
int | getIndexByRef(int ref)
Gets the index of an object based on its number in the xref table. |
PdfObject | getObjectByIndex(int i)
Gets an object based on its index in the indirect object list. |
PdfObject | getObjectByReference(int ref)
Gets an object based on its reference number in the xref table. |
int | getRefByIndex(int i)
Gets the reference number in the xref table based on the index in the
indirect object list. |
int | getXRefMaximum()
Gets the highest possible object number in the XRef table. |
PdfObject | loadObjectByReference(int ref)
Loads an object based on its reference number in the xref table. |
int | size()
Gets the total number of indirect objects in the PDF file.
|
void | store(PdfObject object)
If we store all the objects, we might run out of memory;
that's why we'll only store the objects that are necessary
to construct other objects (for instance the page table). |
boolean | storeNextObject()
Stores the next object of the XRef table.
|
Parameters: reader the reader that will read the PDF document
Returns: the number of the last object that was stored
Parameters: ref a number in the xref table
Returns: the index in the list of indirect objects
Parameters: i an index in the indirect object list
Returns: a PDF object
Parameters: ref a number in the xref table
Returns: a PDF object
Parameters: i the index of an object in the indirect object list
Returns: the corresponding reference number in the xref table
Returns: an object number
Parameters: ref a reference number in the xref table.
Returns: a PDF object
Returns: the total number of indirect objects in the PDF.
Parameters: object an object we might want to store
Returns: false if there are no objects left to check.