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

All Implemented Interfaces:
    COSObjectable

This class represents a PDF object.
Constructor:
 public COSObject(COSBase object) throws IOException 
    Constructor.
    Parameters:
    object - The object that this encapsulates.
    Throws:
    IOException - If there is an error with the object passed in.
Method from org.apache.pdfbox.cos.COSObject Summary:
accept,   getDictionaryObject,   getGenerationNumber,   getItem,   getObject,   getObjectNumber,   setGenerationNumber,   setObject,   setObjectNumber,   toString
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.COSObject Detail:
 public Object accept(ICOSVisitor visitor) throws COSVisitorException 
    visitor pattern double dispatch method.
 public COSBase getDictionaryObject(COSName key) 
    This will get the dictionary object in this object that has the name key and if it is a pdfobjref then it will dereference that and return it.
 public COSInteger getGenerationNumber() 
    Getter for property generationNumber.
 public COSBase getItem(COSName key) 
    This will get the dictionary object in this object that has the name key.
 public COSBase getObject() 
    This will get the object that this object encapsulates.
 public COSInteger getObjectNumber() 
    Getter for property objectNumber.
 public  void setGenerationNumber(COSInteger generationNumberValue) 
    Setter for property generationNumber.
 public  void setObject(COSBase object) throws IOException 
    This will set the object that this object encapsulates.
 public  void setObjectNumber(COSInteger objectNum) 
    Setter for property objectNumber.
 public String toString() 
    {@inheritDoc}