public class PdfIndirectObject extends Object
PdfIndirectObject
is the Pdf indirect object.
An indirect object is an object that has been labeled so that it can be referenced by
other objects. Any type of PdfObject
may be labeled as an indirect object.
An indirect object consists of an object identifier, a direct object, and the endobj
keyword. The object identifier consists of an integer object number, an integer
generation number, and the obj keyword.
This object is described in the 'Portable Document Format Reference Manual version 1.7'
section 3.2.9 (page 63-65).
PdfObject
,
PdfIndirectReference
Modifier and Type | Field and Description |
---|---|
(package private) static byte[] |
ENDOBJ |
protected int |
generation
the generation number
|
protected int |
number
The object number
|
(package private) PdfObject |
object |
(package private) static int |
SIZEOBJ |
(package private) static byte[] |
STARTOBJ |
(package private) PdfWriter |
writer |
Constructor and Description |
---|
PdfIndirectObject(int number,
int generation,
PdfObject object,
PdfWriter writer)
Constructs a
PdfIndirectObject . |
PdfIndirectObject(int number,
PdfObject object,
PdfWriter writer)
Constructs a
PdfIndirectObject . |
PdfIndirectObject(PdfIndirectReference ref,
PdfObject object,
PdfWriter writer) |
Modifier and Type | Method and Description |
---|---|
PdfIndirectReference |
getIndirectReference()
Returns a
PdfIndirectReference to this PdfIndirectObject . |
(package private) void |
writeTo(OutputStream os)
Writes efficiently to a stream
|
protected int number
protected int generation
static final byte[] STARTOBJ
static final byte[] ENDOBJ
static final int SIZEOBJ
PdfIndirectObject(int number, PdfObject object, PdfWriter writer)
PdfIndirectObject
.number
- the object numberobject
- the direct objectPdfIndirectObject(PdfIndirectReference ref, PdfObject object, PdfWriter writer)
PdfIndirectObject(int number, int generation, PdfObject object, PdfWriter writer)
PdfIndirectObject
.number
- the object numbergeneration
- the generation numberobject
- the direct objectpublic PdfIndirectReference getIndirectReference()
PdfIndirectReference
to this PdfIndirectObject
.PdfIndirectReference
void writeTo(OutputStream os) throws IOException
os
- the stream to write toIOException
- on write errorWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses