Package com.itextpdf.text.pdf
Class PdfIndirectReference
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfIndirectReference
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PRIndirectReference
public class PdfIndirectReference extends PdfObject
PdfIndirectReference
contains a reference to aPdfIndirectObject
.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:
PdfObject
,PdfIndirectObject
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
generation
the generation numberprotected int
number
the object number
-
Constructor Summary
Constructors Modifier Constructor Description protected
PdfIndirectReference()
protected
PdfIndirectReference(int type, int number)
Constructs aPdfIndirectReference
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getGeneration()
Returns the generation of the object.int
getNumber()
Returns the number of the object.void
toPdf(PdfWriter writer, OutputStream os)
Writes the PDF representation of thisPdfObject
as an array ofbyte
s to the writer.String
toString()
Returns theString
-representation of thisPdfObject
.-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Method Detail
-
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
public String toString()
Description copied from class:PdfObject
Returns theString
-representation of thisPdfObject
.
-
toPdf
public void toPdf(PdfWriter writer, OutputStream os) throws IOException
Description copied from class:PdfObject
Writes the PDF representation of thisPdfObject
as an array ofbyte
s to the writer.- Overrides:
toPdf
in classPdfObject
- Parameters:
writer
- for backwards compatibilityos
- TheOutputStream
to write the bytes to.- Throws:
IOException
-
-