public class COSObject extends COSBase implements COSUpdateInfo
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.
|
int |
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.
|
long |
getObjectNumber()
Getter for property objectNumber.
|
boolean |
isNeedToBeUpdated()
Get the update state for the COSWriter.
|
void |
setGenerationNumber(int generationNumberValue)
Setter for property generationNumber.
|
void |
setNeedToBeUpdated(boolean flag)
Set the update state of the dictionary for the COSWriter.
|
void |
setObject(COSBase object)
This will set the object that this object encapsulates.
|
void |
setObjectNumber(long objectNum)
Setter for property objectNumber.
|
String |
toString() |
getCOSObject, isDirect, setDirect
public 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 final void setObject(COSBase object) throws IOException
object
- The new object to encapsulate.IOException
- If there is an error setting the updated object.public long getObjectNumber()
public void setObjectNumber(long objectNum)
objectNum
- New value of property objectNumber.public int getGenerationNumber()
public void setGenerationNumber(int generationNumberValue)
generationNumberValue
- New value of property generationNumber.public Object accept(ICOSVisitor visitor) throws IOException
accept
in class COSBase
visitor
- The object to notify when visiting this object.IOException
- If an error occurs while visiting this object.public boolean isNeedToBeUpdated()
isNeedToBeUpdated
in interface COSUpdateInfo
public void setNeedToBeUpdated(boolean flag)
setNeedToBeUpdated
in interface COSUpdateInfo
flag
- the update state.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.