public class PdfIndirectReference extends PdfObject
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).
PdfObject
, PdfIndirectObject
, Serialized Form
Modifier and Type | Field and Description |
---|---|
protected int |
generation
the generation number
|
protected int |
number
the object number
|
Modifier | Constructor and Description |
---|---|
protected |
PdfIndirectReference() |
protected |
PdfIndirectReference(int type, int number)
Constructs a PdfIndirectReference .
|
Modifier and Type | Method and 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 this PdfObject as an array of byte s to the writer.
|
String |
toString()
Returns the String -representation of this PdfObject .
|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
protected int number
protected int generation
protected PdfIndirectReference()
protected PdfIndirectReference(int type, int number)
PdfIndirectReference
.
type
- the type of the PdfObject
that is referenced to
number
- the object number.
public int getNumber()
public int getGeneration()
public String toString()
PdfObject
String
-representation of this PdfObject
.
public void toPdf(PdfWriter writer, OutputStream os) throws IOException
PdfObject
PdfObject
as an array of byte
s to the writer.
toPdf
in class PdfObject
writer
- for backwards compatibility
os
- The OutputStream
to write the bytes to.
IOException
Copyright © 1998–2016. All rights reserved.