static class PdfWriter.PdfBody.PdfCrossReference
extends java.lang.Object
implements java.lang.Comparable
PdfCrossReference is an entry in the PDF Cross-Reference table.| Modifier and Type | Field and Description |
|---|---|
private int |
generation
generation of the object.
|
private int |
offset
Byte offset in the PDF file.
|
private int |
refnum |
private int |
type |
| Constructor and Description |
|---|
PdfCrossReference(int refnum,
int offset)
Constructs a cross-reference element for a PdfIndirectObject.
|
PdfCrossReference(int refnum,
int offset,
int generation)
Constructs a cross-reference element for a PdfIndirectObject.
|
PdfCrossReference(int type,
int refnum,
int offset,
int generation) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object obj) |
(package private) int |
getRefnum() |
int |
hashCode() |
void |
toPdf(int midSize,
java.io.OutputStream os)
Writes PDF syntax to the OutputStream
|
void |
toPdf(java.io.OutputStream os)
Returns the PDF representation of this
PdfObject. |
private int type
private int offset
private int refnum
private int generation
PdfCrossReference(int refnum,
int offset,
int generation)
refnum - offset - byte offset of the objectgeneration - generation number of the objectPdfCrossReference(int refnum,
int offset)
refnum - offset - byte offset of the objectPdfCrossReference(int type,
int refnum,
int offset,
int generation)
int getRefnum()
public void toPdf(java.io.OutputStream os)
throws java.io.IOException
PdfObject.os - java.io.IOExceptionpublic void toPdf(int midSize,
java.io.OutputStream os)
throws java.io.IOException
midSize - os - java.io.IOExceptionpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.ComparableComparable.compareTo(java.lang.Object)public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()