Home » pdfbox-1.1.0-src » org.apache.pdfbox.cos » [javadoc | source]
org.apache.pdfbox.cos
public class: COSFloat [javadoc | source]
java.lang.Object
   org.apache.pdfbox.cos.COSBase
      org.apache.pdfbox.cos.COSNumber
         org.apache.pdfbox.cos.COSFloat

All Implemented Interfaces:
    COSObjectable

This class represents a floating point number in a PDF document.
Fields inherited from org.apache.pdfbox.cos.COSNumber:
ZERO,  ONE
Constructor:
 public COSFloat(float aFloat) 
 public COSFloat(String aFloat) throws IOException 
    Constructor.
    Parameters:
    aFloat - The primitive float object that this object wraps.
    Throws:
    IOException - If aFloat is not a float.
Method from org.apache.pdfbox.cos.COSFloat Summary:
accept,   doubleValue,   equals,   floatValue,   hashCode,   intValue,   longValue,   setValue,   toString,   writePDF
Methods from org.apache.pdfbox.cos.COSNumber:
doubleValue,   floatValue,   get,   intValue,   longValue
Methods from org.apache.pdfbox.cos.COSBase:
accept,   getCOSObject,   getFilterManager
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.cos.COSFloat Detail:
 public Object accept(ICOSVisitor visitor) throws COSVisitorException 
    visitor pattern double dispatch method.
 public double doubleValue() 
    The value of the double object that this one wraps.
 public boolean equals(Object o) 
    {@inheritDoc}
 public float floatValue() 
    The value of the float object that this one wraps.
 public int hashCode() 
    {@inheritDoc}
 public int intValue() 
    This will get the integer value of this object.
 public long longValue() 
    This will get the integer value of this object.
 public  void setValue(float floatValue) 
    Set the value of the float object.
 public String toString() 
    {@inheritDoc}
 public  void writePDF(OutputStream output) throws IOException 
    This will output this string as a PDF object.