public class COSObject extends COSBase implements COSUpdateInfo
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method.
|
boolean |
derefencingInProgress()
Indicates that the dereferencing of the represented indirect object is in progress.
|
void |
dereferencingFinished()
Dereferencing of the represented indirect object is finished.
|
void |
dereferencingStarted()
Start dereferencing the represented indirect object.
|
COSBase |
getDictionaryObject(COSName key)
Deprecated.
This will be removed in 3.0. Call
getObject() to find out if it has the
correct type and then call getDictionaryObject(org.apache.pdfbox.cos.COSName). |
int |
getGenerationNumber()
Getter for property generationNumber.
|
COSBase |
getItem(COSName key)
Deprecated.
This will be removed in 3.0. Call
getObject() to find out if it has the
correct type and then call getDictionaryObject(org.apache.pdfbox.cos.COSName). |
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, setDirectpublic COSObject(COSBase object) throws IOException
object - The object that this encapsulates.IOException - If there is an error with the object passed in.@Deprecated public COSBase getDictionaryObject(COSName key)
getObject() to find out if it has the
correct type and then call getDictionaryObject(org.apache.pdfbox.cos.COSName).key - The key to the value that we are searching for.@Deprecated public COSBase getItem(COSName key)
getObject() to find out if it has the
correct type and then call getDictionaryObject(org.apache.pdfbox.cos.COSName).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 boolean derefencingInProgress()
public void dereferencingStarted()
public void dereferencingFinished()
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 COSBasevisitor - The object to notify when visiting this object.IOException - If an error occurs while visiting this object.public boolean isNeedToBeUpdated()
isNeedToBeUpdated in interface COSUpdateInfopublic void setNeedToBeUpdated(boolean flag)
setNeedToBeUpdated in interface COSUpdateInfoflag - the update state.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.