org.pdfbox.cos
Class COSNumber
- COSObjectable
public abstract class COSNumber
This class represents an abstract number in a PDF document.
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.
|
doubleValue
public abstract double doubleValue()
This will get the double value of this number.
- The double value of this number.
floatValue
public abstract float floatValue()
This will get the float value of this number.
- The float value of this object.
get
public static COSNumber get(String number)
throws IOException
This factory method will get the appropriate number object.
number
- The string representation of the number.
- A number object, either float or int.
intValue
public abstract int intValue()
This will get the integer value of this number.
- The integer value of this number.
longValue
public abstract long longValue()
This will get the long value of this number.
- The long value of this number.