PJX

com.etymon.pjx
Class PdfObject

java.lang.Object
  extended bycom.etymon.pjx.PdfObject
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
PdfArray, PdfBoolean, PdfDictionary, PdfName, PdfNull, PdfNumber, PdfReference, PdfStream, PdfString

public abstract class PdfObject
extends java.lang.Object
implements java.lang.Cloneable

The abstract superclass of all basic PDF object types. It is a requirement that any classes that extend this class be immutable.


Constructor Summary
PdfObject()
           
 
Method Summary
 java.lang.Object clone()
          Returns a shallow copy of this instance.
 boolean equals(java.lang.Object obj)
          Compares this instance with another PDF object for equality.
 PdfObject filter(PdfObjectFilter f)
          Filter this object recursively through PdfObjectFilter.
 int hashCode()
          Returns a hash code for this object.
 java.lang.String toString()
          Returns a string representation of this instance in PDF format.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfObject

public PdfObject()
Method Detail

filter

public PdfObject filter(PdfObjectFilter f)
                 throws PdfFormatException
Filter this object recursively through PdfObjectFilter. The filtered object is returned.

Returns:
the new filtered object.
Throws:
PdfFormatException

clone

public java.lang.Object clone()
Returns a shallow copy of this instance.

Returns:
a clone of this instance.

equals

public boolean equals(java.lang.Object obj)
Compares this instance with another PDF object for equality.

Parameters:
obj - the object to compare this instance with.
Returns:
true if the PDF objects are equal.

hashCode

public int hashCode()
Returns a hash code for this object.

Returns:
the hash code.

toString

public java.lang.String toString()
Returns a string representation of this instance in PDF format.

Returns:
the string representation.

Copyright © 1998-2004 Etymon Systems, Inc.

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