public class PdfLong extends PdfNumber
Prev entry of a document trailer dictionary.| Modifier and Type | Field and Description |
|---|---|
protected long |
_n
The long value of this object.
|
| Constructor and Description |
|---|
PdfLong(long n)
Constructs an long integer object representing a long
value.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
clone, filter, filterContents, toStringpublic PdfLong(long n)
n - the long value.public boolean equals(java.lang.Object obj)
PdfObjectpublic int getInt()
PdfNumberpublic long getLong()
PdfNumberpublic float getFloat()
PdfNumberpublic int hashCode()
PdfObjectprotected int writePdf(PdfWriter w, boolean spacing) throws java.io.IOException
PdfObjectwritePdf 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