|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.cos.COSBase
org.pdfbox.cos.COSNumber
org.pdfbox.cos.COSInteger
This class represents an integer number in a PDF document.
Field Summary |
Fields inherited from class org.pdfbox.cos.COSNumber |
ONE, ZERO |
Constructor Summary | |
COSInteger(int val)
constructor. |
|
COSInteger(long val)
constructor. |
|
COSInteger(String val)
This will create a new PDF Int object using a string. |
Method Summary | |
Object |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method. |
double |
doubleValue()
polymorphic access to value as float. |
boolean |
equals(Object o)
|
float |
floatValue()
polymorphic access to value as float. |
int |
hashCode()
|
int |
intValue()
Polymorphic access to value as int This will get the integer value of this object. |
long |
longValue()
Polymorphic access to value as int This will get the integer value of this object. |
void |
setValue(long newValue)
Change the value of this reference. |
String |
toString()
|
void |
writePDF(OutputStream output)
This will output this string as a PDF object. |
Methods inherited from class org.pdfbox.cos.COSNumber |
get |
Methods inherited from class org.pdfbox.cos.COSBase |
getCOSObject, getFilterManager |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public COSInteger(long val)
val
- The integer value of this object.public COSInteger(int val)
val
- The integer value of this object.public COSInteger(String val) throws IOException
val
- The string value of the integer.
IOException
- If the val is not an integer type.Method Detail |
public boolean equals(Object o)
public int hashCode()
public String toString()
public void setValue(long newValue)
newValue
- The new value.public float floatValue()
floatValue
in class COSNumber
public double doubleValue()
doubleValue
in class COSNumber
public int intValue()
intValue
in class COSNumber
public long longValue()
longValue
in class COSNumber
public Object accept(ICOSVisitor visitor) throws COSVisitorException
accept
in class COSBase
visitor
- The object to notify when visiting this object.
COSVisitorException
- If an error occurs while visiting this object.public void writePDF(OutputStream output) throws IOException
output
- The stream to write to.
IOException
- If there is an error writing to the stream.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |