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

All Implemented Interfaces:
    COSObjectable

This class represents an integer number in a PDF document.
Field Summary
public static final  COSInteger ZERO    Constant for the number zero.
    since: Apache - PDFBox 1.1.0
 
public static final  COSInteger ONE    Constant for the number one.
    since: Apache - PDFBox 1.1.0
 
public static final  COSInteger TWO    Constant for the number two.
    since: Apache - PDFBox 1.1.0
 
public static final  COSInteger THREE    Constant for the number three.
    since: Apache - PDFBox 1.1.0
 
Fields inherited from org.apache.pdfbox.cos.COSNumber:
ZERO,  ONE
Constructor:
 public COSInteger(long val) 
 public COSInteger(int val) 
 public COSInteger(String val) throws IOException 
    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.
Method from org.apache.pdfbox.cos.COSInteger Summary:
accept,   doubleValue,   equals,   floatValue,   get,   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.COSInteger Detail:
 public Object accept(ICOSVisitor visitor) throws COSVisitorException 
    visitor pattern double dispatch method.
 public double doubleValue() 
    polymorphic access to value as float.
 public boolean equals(Object o) 
    {@inheritDoc}
 public float floatValue() 
    polymorphic access to value as float.
 public static COSInteger get(long val) 
    Returns a COSInteger instance with the given value.
 public int hashCode() 
    {@inheritDoc}
 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() 
    {@inheritDoc}
 public  void writePDF(OutputStream output) throws IOException 
    This will output this string as a PDF object.