|
|||||||||||
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
This class represents an abstract number in a PDF document.
Field Summary | |
static COSInteger |
ONE
ONE. |
static COSInteger |
ZERO
ZERO. |
Constructor Summary | |
COSNumber()
|
Method Summary | |
abstract double |
doubleValue()
This will get the double value of this number. |
abstract float |
floatValue()
This will get the float value of this number. |
static COSNumber |
get(String number)
This factory method will get the appropriate number object. |
abstract int |
intValue()
This will get the integer value of this number. |
abstract long |
longValue()
This will get the long value of this number. |
Methods inherited from class org.pdfbox.cos.COSBase |
accept, getCOSObject, getFilterManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final COSInteger ZERO
public static final COSInteger ONE
Constructor Detail |
public COSNumber()
Method Detail |
public abstract float floatValue()
public abstract double doubleValue()
public abstract int intValue()
public abstract long longValue()
public static COSNumber get(String number) throws IOException
number
- The string representation of the number.
IOException
- If the string is not a number.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |