public class PjReference extends PjObject
Modifier and Type | Field and Description |
---|---|
private PjNumber |
_gen |
private PjNumber |
_obj |
Constructor and Description |
---|
PjReference(PjNumber obj)
Creates a PDF reference object.
|
PjReference(PjNumber obj,
PjNumber gen)
Creates a PDF reference object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Returns a deep copy of this object.
|
boolean |
equals(java.lang.Object obj)
Compares two PjReference objects for equality.
|
PjNumber |
getGenNumber()
Returns the generation number referenced by this PDF reference.
|
PjNumber |
getObjNumber()
Returns the object number referenced by this PDF reference.
|
int |
hashCode()
Returns a hash code value for the object.
|
long |
writePdf(java.io.OutputStream os)
Writes this PDF reference object to a stream in PDF format.
|
public PjReference(PjNumber obj)
obj
- the object number for the new reference.public PjNumber getObjNumber()
public PjNumber getGenNumber()
public long writePdf(java.io.OutputStream os) throws java.io.IOException
writePdf
in class BaseObject
os
- the stream to write to.java.io.IOException
- if an I/O error occurs.public java.lang.Object clone()
clone
in class BaseObject
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object to compare to.public int hashCode()
hashCode
in class java.lang.Object