gnu.jpdf
Class PDFXref

java.lang.Object
  extended by gnu.jpdf.PDFXref

public class PDFXref
extends java.lang.Object

This class is used to hold the xref information in the PDF Trailer block.

Basically, each object has an id, and an offset in the end file.

See the Adobe PDF Manual for more information. This class will normally not be used directly by a developer


Field Summary
 int generation
          The generation of the object, usually 0
 int id
          The id of a PDF Object
 int offset
          The offset within the PDF file
 
Constructor Summary
PDFXref(int id, int offset)
          Creates a crossreference for a PDF Object
PDFXref(int id, int offset, int generation)
          Creates a crossreference for a PDF Object
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public int id
The id of a PDF Object


offset

public int offset
The offset within the PDF file


generation

public int generation
The generation of the object, usually 0

Constructor Detail

PDFXref

public PDFXref(int id,
               int offset)
Creates a crossreference for a PDF Object

Parameters:
id - The object's ID
offset - The object's position in the file

PDFXref

public PDFXref(int id,
               int offset,
               int generation)
Creates a crossreference for a PDF Object

Parameters:
id - The object's ID
offset - The object's position in the file
generation - The object's generation, usually 0
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
The xref in the format of the xref section in the PDF file