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 |
---|---|
Object |
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.
|
boolean |
isNeedToBeUpdated()
Get the update state for the COSWriter.
|
boolean |
isObjectNull()
Indicates if the referenced object is present or not.
|
void |
setNeedToBeUpdated(boolean flag)
Set the update state of the dictionary for the COSWriter.
|
void |
setToNull()
Sets the referenced object to COSNull and removes the initially assigned parser.
|
String |
toString() |
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()
public long getObjectNumber()
public int getGenerationNumber()
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–2021 The Apache Software Foundation. All rights reserved.