public class COSObject extends COSBase
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
toString() |
getCOSObject, getFilterManager, isDirect, isNeedToBeUpdate, setDirect, setNeedToBeUpdatepublic COSObject(COSBase object) throws IOException
object - The object that this encapsulates.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 IOException
object - The new object to encapsulate.IOException - If there is an error setting the updated 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 Object accept(ICOSVisitor visitor) throws COSVisitorException
accept in class COSBasevisitor - The object to notify when visiting this object.COSVisitorException - If an error occurs while visiting this object.Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.