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()
Deprecated.
will be removed in 4.0.0
|
COSBase |
getObject()
This will get the object that this object encapsulates.
|
long |
getObjectNumber()
Deprecated.
will be removed in 4.0.0
|
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, setKey
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isNeedToBeUpdated, setNeedToBeUpdated, toIncrement
getCOSObject
public 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()
@Deprecated public long getObjectNumber()
@Deprecated public int getGenerationNumber()
public void 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 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 COSUpdateInfo
COSUpdateState
of this COSObject
.COSUpdateState
Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.