|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.rups.model.IndirectObjectFactory
public class IndirectObjectFactory
A factory that can produce all the indirect objects in a PDF file.
Field Summary | |
---|---|
protected int |
current
The current xref number. |
protected com.itextpdf.text.pdf.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<com.itextpdf.text.pdf.PdfObject> |
objects
A list of all the indirect objects in a PDF file. |
protected com.itextpdf.text.pdf.PdfReader |
reader
The reader object. |
protected com.itextpdf.text.pdf.IntHashtable |
refToIdx
Mapping between the reference number in the xref table and the index in the objects list . |
Constructor Summary | |
---|---|
IndirectObjectFactory(com.itextpdf.text.pdf.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. |
com.itextpdf.text.pdf.PdfObject |
getObjectByIndex(int i)
Gets an object based on its index in the indirect object list. |
com.itextpdf.text.pdf.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. |
com.itextpdf.text.pdf.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. |
boolean |
storeNextObject()
Stores the next object of the XRef table. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.itextpdf.text.pdf.PdfReader reader
protected int current
protected int n
protected ArrayList<com.itextpdf.text.pdf.PdfObject> objects
protected com.itextpdf.text.pdf.IntHashtable idxToRef
protected com.itextpdf.text.pdf.IntHashtable refToIdx
Constructor Detail |
---|
public IndirectObjectFactory(com.itextpdf.text.pdf.PdfReader reader)
reader
- the reader that will read the PDF documentMethod Detail |
---|
public int getCurrent()
public int getXRefMaximum()
public boolean storeNextObject()
public int size()
public int getIndexByRef(int ref)
ref
- a number in the xref table
public int getRefByIndex(int i)
i
- the index of an object in the indirect object list
public com.itextpdf.text.pdf.PdfObject getObjectByIndex(int i)
i
- an index in the indirect object list
public com.itextpdf.text.pdf.PdfObject getObjectByReference(int ref)
ref
- a number in the xref table
public com.itextpdf.text.pdf.PdfObject loadObjectByReference(int ref)
ref
- a reference number in the xref table.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |