static class PdfWriter.PdfBody.PdfCrossReference extends Object implements Comparable<PdfWriter.PdfBody.PdfCrossReference>
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(PdfWriter.PdfBody.PdfCrossReference other) |
boolean |
equals(Object obj) |
(package private) int |
getRefnum() |
int |
hashCode() |
void |
toPdf(int midSize,
OutputStream os)
Writes PDF syntax to the OutputStream
|
void |
toPdf(OutputStream os)
Returns the PDF representation of this
PdfObject . |
private final int type
private final int offset
private final int refnum
private final 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(OutputStream os) throws IOException
PdfObject
.os
- IOException
public void toPdf(int midSize, OutputStream os) throws IOException
midSize
- os
- IOException
public int compareTo(PdfWriter.PdfBody.PdfCrossReference other)
compareTo
in interface Comparable<PdfWriter.PdfBody.PdfCrossReference>
Comparable.compareTo(java.lang.Object)
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses