|
||||||||||
| 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.PdfNumber
com.etymon.pjx.PdfInteger
public class PdfInteger
Represents the PDF integer object.
| Field Summary | |
|---|---|
protected int |
_n
The int value of this object. |
static PdfInteger |
ZERO
A PdfInteger object representing the int value
0. |
| Constructor Summary | |
|---|---|
PdfInteger(int n)
Constructs an integer object representing an int value. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this instance with another PDF object for equality. |
float |
getFloat()
Returns the float value of this number. |
int |
getInt()
Returns the int value of this number. |
long |
getLong()
Returns the long value of this number. |
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 _n
public static final PdfInteger ZERO
PdfInteger object representing the int value
0.
| Constructor Detail |
|---|
public PdfInteger(int n)
n - the int value.| 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 getInt()
PdfNumber
getInt in class PdfNumberpublic long getLong()
PdfNumber
getLong in class PdfNumberpublic float getFloat()
PdfNumber
getFloat in class PdfNumberpublic 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 | |||||||||