|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.etymon.pjx.PdfObject
com.etymon.pjx.PdfReference
public class PdfReference
Represents the PDF indirect reference.
| Field Summary | |
|---|---|
protected int |
_g
The generation number of this indirect reference. |
protected int |
_n
The object number of this 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. |
protected int |
writePdf(PdfWriter w,
boolean spacing)
Writes this object in PDF format. |
| Methods inherited from class com.etymon.pjx.PdfObject |
|---|
clone, filter, filterContents, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _g
protected int _n
| Constructor Detail |
|---|
public PdfReference(int n,
int g)
n - the object number.g - the generation number.| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
PdfObject
equals in class PdfObjectobj - the object to compare this instance with.
true if the PDF objects are equal.public int getGenerationNumber()
public int getObjectNumber()
public int hashCode()
PdfObject
hashCode in class PdfObject
protected int writePdf(PdfWriter w,
boolean spacing)
throws java.io.IOException
PdfObject
writePdf in class PdfObjectw - the PdfWriter to write to.spacing - specifies whether to add white-space before
the object. A value of true enables the
addition of white-space. If the object begins with a PDF
delimiter, then this option is ignored and no white-space
is written.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||