PJX

com.etymon.pjx
Class PdfReference

java.lang.Object
  extended bycom.etymon.pjx.PdfObject
      extended bycom.etymon.pjx.PdfReference
All Implemented Interfaces:
java.lang.Cloneable

public class PdfReference
extends PdfObject

Represents the PDF indirect reference.


Constructor Summary
PdfReference(int n, int g)
          Constructs an indirect reference representing a specified object number and generation number.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this instance with another PDF object for equality.
 int getGenerationNumber()
          Returns the generation number of this indirect reference.
 int getObjectNumber()
          Returns the object number of this indirect reference.
 int hashCode()
          Returns a hash code for this object.
 
Methods inherited from class com.etymon.pjx.PdfObject
clone, filter, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfReference

public PdfReference(int n,
                    int g)
Constructs an indirect reference representing a specified object number and generation number.

Parameters:
n - the object number.
g - the generation number.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Description copied from class: PdfObject
Compares this instance with another PDF object for equality.

Overrides:
equals in class PdfObject
Parameters:
obj - the object to compare this instance with.
Returns:
true if the PDF objects are equal.

getGenerationNumber

public int getGenerationNumber()
Returns the generation number of this indirect reference.

Returns:
the generation number.

getObjectNumber

public int getObjectNumber()
Returns the object number of this indirect reference.

Returns:
the object number.

hashCode

public int hashCode()
Description copied from class: PdfObject
Returns a hash code for this object.

Overrides:
hashCode in class PdfObject
Returns:
the hash code.

Copyright © 1998-2004 Etymon Systems, Inc.

The PDF data structures, operators, and specification are
Copyright © 1985-2004 Adobe Systems Incorporated.