org.pdfbox.cos
Class COSFloat
- COSObjectable
This class represents a floating point number in a PDF document.
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 integer value of this object.
|
void | setValue(float floatValue) - Set the value of the float object.
|
String | toString() -
|
void | writePDF(OutputStream output) - This will output this string as a PDF object.
|
COSFloat
public COSFloat(String aFloat)
throws IOException
Constructor.
aFloat
- The primitive float object that this object wraps.
COSFloat
public COSFloat(float aFloat)
Constructor.
aFloat
- The primitive float object that this object wraps.
accept
public Object accept(ICOSVisitor visitor)
throws COSVisitorException
visitor pattern double dispatch method.
- accept in interface COSBase
visitor
- The object to notify when visiting this object.
- any object, depending on the visitor implementation, or null
doubleValue
public double doubleValue()
The value of the double object that this one wraps.
- doubleValue in interface COSNumber
- The double of this object.
equals
public boolean equals(Object o)
floatValue
public float floatValue()
The value of the float object that this one wraps.
- floatValue in interface COSNumber
- The value of this object.
hashCode
public int hashCode()
intValue
public int intValue()
This will get the integer value of this object.
- intValue in interface COSNumber
- The int value of this object,
longValue
public long longValue()
This will get the integer value of this object.
- longValue in interface COSNumber
- The int value of this object,
setValue
public void setValue(float floatValue)
Set the value of the float object.
floatValue
- The new float value.
toString
public String toString()
writePDF
public void writePDF(OutputStream output)
throws IOException
This will output this string as a PDF object.
output
- The stream to write to.