public class COSFloat extends COSNumber
Constructor and Description |
---|
COSFloat(float aFloat)
Constructor.
|
COSFloat(String aFloat)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method.
|
double |
doubleValue()
The value of the double object that this one wraps.
|
boolean |
equals(Object o) |
float |
floatValue()
The value of the float object that this one wraps.
|
int |
hashCode() |
int |
intValue()
This will get the integer value of this object.
|
long |
longValue()
This will get the long value of this object.
|
String |
toString() |
void |
writePDF(OutputStream output)
This will output this string as a PDF object.
|
getCOSObject, isDirect, setDirect
public COSFloat(float aFloat)
aFloat
- The primitive float object that this object wraps.public COSFloat(String aFloat) throws IOException
aFloat
- The primitive float object that this object wraps.IOException
- If aFloat is not a float.public float floatValue()
floatValue
in class COSNumber
public double doubleValue()
doubleValue
in class COSNumber
public long longValue()
public int intValue()
public Object accept(ICOSVisitor visitor) throws IOException
accept
in class COSBase
visitor
- The object to notify when visiting this object.IOException
- 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.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.