public class CosNumeric extends CosScalar
DIRECT, INDIRECT, t_Array, t_Boolean, t_Dictionary, t_KeyAbsent, t_Name, t_Null, t_Numeric, t_ObjectRef, t_Stream, t_String| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue()
Obtain the object's value as a floating point number.
|
boolean |
equals(CosObject value)
This method returns true if both CosNumeric have same integer or real value inside.
|
int |
fixedValue()
This API returns value of this number as a legacy 16.16 fixed point number.
|
int |
getType()
return the type of this CosObject
|
Object |
getValue() |
int |
intValue()
Obtain the object's value as an integer.
|
long |
longValue()
Obtain the object's value as a long.
|
Number |
numberValue()
Obtain the object's value as a Java Number object
|
booleanValue, equals, getDocument, getObjEOF, getObjGen, getObjNum, getObjPos, getObjRevision, getStreamManager, hexStringValue, isCompressed, isDirty, isIndirect, nameValue, stringValue, textValue, toStringpublic int getType()
public int intValue()
public int fixedValue()
throws PDFCosParseException
PDFCosParseExceptionpublic long longValue()
public double doubleValue()
doubleValue in class CosObjectpublic Number numberValue()
numberValue in class CosObjectpublic Object getValue()
Copyright © 2010 - 2020 Adobe. All Rights Reserved