public class ASNumber extends ASObject
| Constructor and Description |
|---|
ASNumber(ASNumber value)
Constructor.
|
ASNumber(ASString value)
Constructor which creates a number from string value passed in proper number format.
|
ASNumber(double value)
Constructor.
|
ASNumber(Double value)
Constructor.
|
ASNumber(float value)
Constructor.
|
ASNumber(Float value)
Constructor.
|
ASNumber(int value)
Constructor.
|
ASNumber(long value)
Constructor.
|
ASNumber(Number value)
Constructor.
|
ASNumber(String value)
Constructor which creates a number from string value passed in proper number format.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
doubleToString(double value)
Converts the double value passed here to an string and returns it.
|
double |
doubleValue()
Returns double value of this number.
|
float |
floatValue()
Returns float value of this number.
|
int |
intValue()
Returns integer value of this number.
|
long |
longValue()
Returns long value of this number.
|
Number |
numberValue()
Returns this number.
|
ASString |
strValue()
Returns string representation of this number object.
|
String |
toString() |
void |
write(OutputByteStream outputByteStream)
Writes the ASHexString in to the given OutputStream in the format expected by the PDF Spec.
|
public ASNumber(ASString value) throws PDFParseException
PDFParseExceptionpublic ASNumber(String value) throws PDFParseException
PDFParseExceptionpublic ASNumber(ASNumber value)
public ASNumber(Number value)
public ASNumber(Float value)
public ASNumber(Double value)
public ASNumber(int value)
public ASNumber(long value)
public ASNumber(float value)
public ASNumber(double value)
public ASString strValue()
public int intValue()
public long longValue()
public float floatValue()
public double doubleValue()
public Number numberValue()
public static String doubleToString(double value)
public void write(OutputByteStream outputByteStream) throws PDFIOException
write in class ASObjectoutputByteStream - OutputByteStream to write to.PDFIOExceptionASStringCopyright © 2010 - 2020 Adobe. All Rights Reserved