COSUpdateInfo
, COSObjectable
public class COSObject extends COSBase implements COSUpdateInfo
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.
|
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.
|
java.lang.String |
toString() |
getCOSObject, isDirect, setDirect
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 final 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 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 java.lang.Object accept(ICOSVisitor visitor) throws java.io.IOException
public boolean isNeedToBeUpdated()
isNeedToBeUpdated
in interface COSUpdateInfo
public void setNeedToBeUpdated(boolean flag)
setNeedToBeUpdated
in interface COSUpdateInfo
flag
- the update state.Copyright © 2002–2018. All rights reserved.