| |
|
| java.lang.Object org.pdfbox.cos.COSBase org.pdfbox.cos.COSNumber org.pdfbox.cos.COSInteger
COSInteger | public class COSInteger extends COSNumber (Code) | | This class represents an integer number in a PDF document.
author: Ben Litchfield version: $Revision: 1.12 $ |
Constructor Summary | |
public | COSInteger(long val) constructor. | public | COSInteger(int val) constructor. | public | COSInteger(String val) This will create a new PDF Int object using a string. |
Method Summary | |
public Object | accept(ICOSVisitor visitor) visitor pattern double dispatch method.
Parameters: visitor - The object to notify when visiting this object. | public double | doubleValue() polymorphic access to value as float. | public boolean | equals(Object o) | public float | floatValue() polymorphic access to value as float. | public int | hashCode() | public int | intValue() Polymorphic access to value as int
This will get the integer value of this object. | public long | longValue() Polymorphic access to value as int
This will get the integer value of this object. | public void | setValue(long newValue) Change the value of this reference. | public String | toString() | public void | writePDF(OutputStream output) This will output this string as a PDF object. |
COSInteger | public COSInteger(long val)(Code) | | constructor.
Parameters: val - The integer value of this object. |
COSInteger | public COSInteger(int val)(Code) | | constructor.
Parameters: val - The integer value of this object. |
COSInteger | public COSInteger(String val) throws IOException(Code) | | This will create a new PDF Int object using a string.
Parameters: val - The string value of the integer. throws: IOException - If the val is not an integer type. |
accept | public Object accept(ICOSVisitor visitor) throws COSVisitorException(Code) | | visitor pattern double dispatch method.
Parameters: visitor - The object to notify when visiting this object. any object, depending on the visitor implementation, or null throws: COSVisitorException - If an error occurs while visiting this object. |
doubleValue | public double doubleValue()(Code) | | polymorphic access to value as float.
The double value of this object. |
floatValue | public float floatValue()(Code) | | polymorphic access to value as float.
The float value of this object. |
hashCode | public int hashCode()(Code) | | |
intValue | public int intValue()(Code) | | Polymorphic access to value as int
This will get the integer value of this object.
The int value of this object, |
longValue | public long longValue()(Code) | | Polymorphic access to value as int
This will get the integer value of this object.
The int value of this object, |
setValue | public void setValue(long newValue)(Code) | | Change the value of this reference.
Parameters: newValue - The new value. |
writePDF | public void writePDF(OutputStream output) throws IOException(Code) | | This will output this string as a PDF object.
Parameters: output - The stream to write to. throws: IOException - If there is an error writing to the stream. |
|
|
|