COSObjectable
public class COSObject extends COSBase
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
accept(ICOSVisitor visitor) |
visitor pattern double dispatch method.
|
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.
|
COSInteger |
getGenerationNumber() |
Getter for property generationNumber.
|
COSBase |
getItem(COSName key) |
This will get the dictionary object in this object that has the name key.
|
COSBase |
getObject() |
This will get the object that this object encapsulates.
|
COSInteger |
getObjectNumber() |
Getter for property objectNumber.
|
void |
setGenerationNumber(COSInteger generationNumberValue) |
Setter for property generationNumber.
|
void |
setObject(COSBase object) |
This will set the object that this object encapsulates.
|
void |
setObjectNumber(COSInteger objectNum) |
Setter for property objectNumber.
|
java.lang.String |
toString() |
getCOSObject, getFilterManager, isDirect, isNeedToBeUpdate, setDirect, setNeedToBeUpdate
public COSObject(COSBase object) throws java.io.IOException
object
- The object that this encapsulates.java.io.IOException
- If there is an error with the object passed in.public COSBase getDictionaryObject(COSName key)
key
- The key to the value that we are searching for.public COSBase getItem(COSName key)
key
- The key to the value that we are searching for.public COSBase getObject()
public void setObject(COSBase object) throws java.io.IOException
object
- The new object to encapsulate.java.io.IOException
- If there is an error setting the updated object.public java.lang.String toString()
toString
in class java.lang.Object
public COSInteger getObjectNumber()
public void setObjectNumber(COSInteger objectNum)
objectNum
- New value of property objectNumber.public COSInteger getGenerationNumber()
public void setGenerationNumber(COSInteger generationNumberValue)
generationNumberValue
- New value of property generationNumber.public java.lang.Object accept(ICOSVisitor visitor) throws COSVisitorException
accept
in class COSBase
visitor
- The object to notify when visiting this object.COSVisitorException
- If an error occurs while visiting this object.