com.itextpdf.text.pdf
Class PdfWriter.PdfBody.PdfCrossReference

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfWriter.PdfBody.PdfCrossReference
All Implemented Interfaces:
Comparable<PdfWriter.PdfBody.PdfCrossReference>
Enclosing class:
PdfWriter.PdfBody

static class PdfWriter.PdfBody.PdfCrossReference
extends Object
implements Comparable<PdfWriter.PdfBody.PdfCrossReference>

PdfCrossReference is an entry in the PDF Cross-Reference table.


Field Summary
private  int generation
          generation of the object.
private  int offset
          Byte offset in the PDF file.
private  int refnum
           
private  int type
           
 
Constructor Summary
PdfWriter.PdfBody.PdfCrossReference(int refnum, int offset)
          Constructs a cross-reference element for a PdfIndirectObject.
PdfWriter.PdfBody.PdfCrossReference(int refnum, int offset, int generation)
          Constructs a cross-reference element for a PdfIndirectObject.
PdfWriter.PdfBody.PdfCrossReference(int type, int refnum, int offset, int generation)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

private int type

offset

private int offset
Byte offset in the PDF file.


refnum

private int refnum

generation

private int generation
generation of the object.

Constructor Detail

PdfWriter.PdfBody.PdfCrossReference

PdfWriter.PdfBody.PdfCrossReference(int refnum,
                                    int offset,
                                    int generation)
Constructs a cross-reference element for a PdfIndirectObject.

Parameters:
refnum -
offset - byte offset of the object
generation - generation number of the object

PdfWriter.PdfBody.PdfCrossReference

PdfWriter.PdfBody.PdfCrossReference(int refnum,
                                    int offset)
Constructs a cross-reference element for a PdfIndirectObject.

Parameters:
refnum -
offset - byte offset of the object

PdfWriter.PdfBody.PdfCrossReference

PdfWriter.PdfBody.PdfCrossReference(int type,
                                    int refnum,
                                    int offset,
                                    int generation)
Method Detail

getRefnum

int getRefnum()

toPdf

public void toPdf(OutputStream os)
           throws IOException
Returns the PDF representation of this PdfObject.

Parameters:
os -
Throws:
IOException

toPdf

public void toPdf(int midSize,
                  OutputStream os)
           throws IOException
Writes PDF syntax to the OutputStream

Parameters:
midSize -
os -
Throws:
IOException

compareTo

public int compareTo(PdfWriter.PdfBody.PdfCrossReference other)
Specified by:
compareTo in interface Comparable<PdfWriter.PdfBody.PdfCrossReference>
See Also:
Comparable.compareTo(java.lang.Object)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

Hosted by Hostbasket