Package com.aowagie.text.pdf
Class PdfWriter.PdfBody.PdfCrossReference
java.lang.Object
com.aowagie.text.pdf.PdfWriter.PdfBody.PdfCrossReference
- All Implemented Interfaces:
Comparable
- Enclosing class:
PdfWriter.PdfBody
PdfCrossReference
is an entry in the PDF Cross-Reference table.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
generation of the object.private final int
Byte offset in the PDF file.private final int
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PdfCrossReference
(int refnum, int offset) Constructs a cross-reference element for a PdfIndirectObject.private
PdfCrossReference
(int refnum, int offset, int generation) Constructs a cross-reference element for a PdfIndirectObject.private
PdfCrossReference
(int type, int refnum, int offset, int generation) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
private int
int
hashCode()
private void
toPdf
(int midSize, OutputStream os) Writes PDF syntax to the OutputStreamprivate void
toPdf
(OutputStream os) Returns the PDF representation of thisPdfObject
.
-
Field Details
-
type
private final int type -
offset
private final int offsetByte offset in the PDF file. -
refnum
private final int refnum -
generation
private final int generationgeneration of the object.
-
-
Constructor Details
-
PdfCrossReference
private PdfCrossReference(int refnum, int offset, int generation) Constructs a cross-reference element for a PdfIndirectObject.- Parameters:
refnum
-offset
- byte offset of the objectgeneration
- generation number of the object
-
PdfCrossReference
private PdfCrossReference(int refnum, int offset) Constructs a cross-reference element for a PdfIndirectObject.- Parameters:
refnum
-offset
- byte offset of the object
-
PdfCrossReference
private PdfCrossReference(int type, int refnum, int offset, int generation)
-
-
Method Details
-
getRefnum
private int getRefnum() -
toPdf
Returns the PDF representation of thisPdfObject
.- Parameters:
os
-- Throws:
IOException
-
toPdf
Writes PDF syntax to the OutputStream- Parameters:
midSize
-os
-- Throws:
IOException
-
compareTo
- Specified by:
compareTo
in interfaceComparable
- See Also:
-
equals
-
hashCode
public int hashCode()
-