public static class PdfWriter.PdfBody.PdfCrossReference extends Object implements Comparable<PdfWriter.PdfBody.PdfCrossReference>
PdfCrossReference
is an entry in the PDF Cross-Reference table.
Constructor and Description |
---|
PdfCrossReference(int type, int refnum, long offset, int generation) |
PdfCrossReference(int refnum, long offset)
Constructs a cross-reference element for a PdfIndirectObject.
|
PdfCrossReference(int refnum, long offset, int generation)
Constructs a cross-reference element for a PdfIndirectObject.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PdfWriter.PdfBody.PdfCrossReference other) |
boolean |
equals(Object obj) |
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 .
|
public PdfCrossReference(int refnum, long offset, int generation)
refnum
-
offset
- byte offset of the object
generation
- generation number of the object
public PdfCrossReference(int refnum, long offset)
refnum
-
offset
- byte offset of the object
public PdfCrossReference(int type, int refnum, long offset, int generation)
public 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()
Copyright © 1998–2016. All rights reserved.