| |
|
| java.lang.Object com.etymon.pj.object.BaseObject com.etymon.pj.object.PjObject com.etymon.pj.object.PjReference
PjReference | public class PjReference extends PjObject (Code) | | A representation of the PDF reference type.
author: Nassib Nassar |
Method Summary | |
public Object | clone() Returns a deep copy of this object. | public boolean | equals(Object obj) Compares two PjReference objects for equality.
Parameters: obj - the reference object to compare to. | public PjNumber | getGenNumber() Returns the generation number referenced by this PDF reference. | public PjNumber | getObjNumber() Returns the object number referenced by this PDF reference. | public int | hashCode() Returns a hash code value for the object. | public long | writePdf(OutputStream os) Writes this PDF reference object to a stream in PDF format.
Parameters: os - the stream to write to. |
PjReference | public PjReference(PjNumber obj)(Code) | | Creates a PDF reference object.
Parameters: obj - the object number for the new reference. |
PjReference | public PjReference(PjNumber obj, PjNumber gen)(Code) | | Creates a PDF reference object.
Parameters: obj - the object number for the new reference. Parameters: gen - the generation number for the new reference. |
clone | public Object clone()(Code) | | Returns a deep copy of this object.
a deep copy of this object. |
equals | public boolean equals(Object obj)(Code) | | Compares two PjReference objects for equality.
Parameters: obj - the reference object to compare to. true if this object is the same as obj, falseotherwise. |
getGenNumber | public PjNumber getGenNumber()(Code) | | Returns the generation number referenced by this PDF reference.
the generation number within this PDF reference. |
getObjNumber | public PjNumber getObjNumber()(Code) | | Returns the object number referenced by this PDF reference.
the object number within this PDF reference. |
hashCode | public int hashCode()(Code) | | Returns a hash code value for the object.
a hashcode value for this object. |
writePdf | public long writePdf(OutputStream os) throws IOException(Code) | | Writes this PDF reference object to a stream in PDF format.
Parameters: os - the stream to write to. the number of bytes written. exception: IOException - if an I/O error occurs. |
|
|
|