org.pdfbox.cos
Class COSInteger
- COSObjectable
This class represents an integer number in a PDF document.
Object | accept(ICOSVisitor visitor) - visitor pattern double dispatch method.
|
double | doubleValue() - polymorphic access to value as float.
|
boolean | equals(Object o) -
|
float | floatValue() - polymorphic access to value as float.
|
int | hashCode() -
|
int | intValue() - Polymorphic access to value as int
This will get the integer value of this object.
|
long | longValue() - Polymorphic access to value as int
This will get the integer value of this object.
|
void | setValue(long newValue) - Change the value of this reference.
|
String | toString() -
|
void | writePDF(OutputStream output) - This will output this string as a PDF object.
|
COSInteger
public COSInteger(String val)
throws IOException
This will create a new PDF Int object using a string.
val
- The string value of the integer.
COSInteger
public COSInteger(int val)
constructor.
val
- The integer value of this object.
COSInteger
public COSInteger(long val)
constructor.
val
- The integer value of this object.
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()
polymorphic access to value as float.
- doubleValue in interface COSNumber
- The double value of this object.
equals
public boolean equals(Object o)
floatValue
public float floatValue()
polymorphic access to value as float.
- floatValue in interface COSNumber
- The float value of this object.
hashCode
public int hashCode()
intValue
public int intValue()
Polymorphic access to value as int
This will get the integer value of this object.
- intValue in interface COSNumber
- The int value of this object,
longValue
public long longValue()
Polymorphic access to value as int
This will get the integer value of this object.
- longValue in interface COSNumber
- The int value of this object,
setValue
public void setValue(long newValue)
Change the value of this reference.
newValue
- The new 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.