public class COSObject extends COSBase implements COSUpdateInfo
| Constructor and Description |
|---|
COSObject(COSBase object)
Constructor.
|
COSObject(COSBase object,
COSObjectKey objectKey)
Constructor.
|
COSObject(COSBase object,
ICOSParser parser)
Constructor.
|
COSObject(COSObjectKey key,
ICOSParser parser)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ICOSVisitor visitor)
visitor pattern double dispatch method.
|
int |
getGenerationNumber()
Getter for property generationNumber.
|
COSBase |
getObject()
This will get the object that this object encapsulates.
|
long |
getObjectNumber()
Getter for property objectNumber.
|
COSUpdateState |
getUpdateState()
Returns the current
COSUpdateState of this COSObject. |
boolean |
isDereferenced()
Returns
true, if the hereby referenced COSBase has already been parsed and loaded. |
boolean |
isObjectNull()
Indicates if the referenced object is present or not.
|
void |
setToNull()
Sets the referenced object to COSNull and removes the initially assigned parser.
|
String |
toString() |
getCOSObject, getKey, isDirect, setDirect, setKeyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisNeedToBeUpdated, setNeedToBeUpdated, toIncrementgetCOSObjectpublic COSObject(COSBase object)
object - The object that this encapsulates.public COSObject(COSBase object, COSObjectKey objectKey)
object - The object that this encapsulates.objectKey - The COSObjectKey of the encapsulated objectpublic COSObject(COSBase object, ICOSParser parser)
object - The object that this encapsulates.parser - The parser to be used to load the object on demandpublic COSObject(COSObjectKey key, ICOSParser parser)
key - The object number of the encapsulated object.parser - The parser to be used to load the object on demandpublic boolean isObjectNull()
public COSBase getObject()
public final void setToNull()
public long getObjectNumber()
public int getGenerationNumber()
public void 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 isDereferenced()
true, if the hereby referenced COSBase has already been parsed and loaded.true, if the hereby referenced COSBase has already been parsed and loaded.public COSUpdateState getUpdateState()
COSUpdateState of this COSObject.getUpdateState in interface COSUpdateInfoCOSUpdateState of this COSObject.COSUpdateStateCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.