Package com.aowagie.text.pdf
Class PdfWriter.PdfBody.PdfCrossReference
- java.lang.Object
-
- com.aowagie.text.pdf.PdfWriter.PdfBody.PdfCrossReference
-
- All Implemented Interfaces:
java.lang.Comparable
- Enclosing class:
- PdfWriter.PdfBody
private static class PdfWriter.PdfBody.PdfCrossReference extends java.lang.Object implements java.lang.Comparable
PdfCrossReference
is an entry in the PDF Cross-Reference table.
-
-
Field Summary
Fields Modifier and Type Field Description private int
generation
generation of the object.private int
offset
Byte offset in the PDF file.private int
refnum
private int
type
-
Constructor Summary
Constructors Modifier Constructor Description private
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(java.lang.Object o)
boolean
equals(java.lang.Object obj)
private int
getRefnum()
int
hashCode()
private void
toPdf(int midSize, java.io.OutputStream os)
Writes PDF syntax to the OutputStreamprivate void
toPdf(java.io.OutputStream os)
Returns the PDF representation of thisPdfObject
.
-
-
-
Constructor Detail
-
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 Detail
-
getRefnum
private int getRefnum()
-
toPdf
private void toPdf(java.io.OutputStream os) throws java.io.IOException
Returns the PDF representation of thisPdfObject
.- Parameters:
os
-- Throws:
java.io.IOException
-
toPdf
private void toPdf(int midSize, java.io.OutputStream os) throws java.io.IOException
Writes PDF syntax to the OutputStream- Parameters:
midSize
-os
-- Throws:
java.io.IOException
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
- See Also:
Comparable.compareTo(java.lang.Object)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
-