Package org.openpdf.text.pdf
Class PdfIndirectReference
java.lang.Object
org.openpdf.text.pdf.PdfObject
org.openpdf.text.pdf.PdfIndirectReference
- Direct Known Subclasses:
PRIndirectReference
PdfIndirectReference contains a reference to a PdfIndirectObject.
Any object used as an element of an array or as a value in a dictionary may be specified by either a direct object of
an indirect reference. An indirect reference is a reference to an indirect object, and consists of the
indirect object's object number, generation number and the R keyword.
This object is described in the
'Portable Document Format Reference Manual version 1.3' section 4.11 (page 54).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intthe generation numberprotected intthe object number -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected(package private)PdfIndirectReference(int type, int number) Constructs aPdfIndirectReference.(package private)PdfIndirectReference(int type, int number, int generation) Constructs aPdfIndirectReference. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the generation of the object.intReturns the number of the object.toString()Returns theString-representation of thisPdfObject.Methods inherited from class org.openpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toPdf, type
-
Field Details
-
number
protected int numberthe object number -
generation
protected int generationthe generation number
-
-
Constructor Details
-
PdfIndirectReference
protected PdfIndirectReference() -
PdfIndirectReference
PdfIndirectReference(int type, int number, int generation) Constructs aPdfIndirectReference.- Parameters:
type- the type of thePdfObjectthat is referenced tonumber- the object number.generation- the generation number.
-
PdfIndirectReference
PdfIndirectReference(int type, int number) Constructs aPdfIndirectReference.- Parameters:
type- the type of thePdfObjectthat is referenced tonumber- the object number.
-
-
Method Details
-
getNumber
public int getNumber()Returns the number of the object.- Returns:
- a number.
-
getGeneration
public int getGeneration()Returns the generation of the object.- Returns:
- a number.
-
toString
Description copied from class:PdfObjectReturns theString-representation of thisPdfObject.
-