COSObjectReference

COSObjectReference

Overview

COSObjectReference is a class in Aspose.Pdf FOSS for Java. Inherits from: COSBase.

PDF indirect object reference (§7.3.10, ISO 32000-1:2008).

Properties

NameTypeAccessDescription
keyCOSObjectKeyReadReturns the indirect object key.
dirtybooleanReadReturns {@code true} if this object was modified since loading.
indirectbooleanReadReturns whether this object is an indirect object (has an object key).
objectKeyCOSObjectKeyReadReturns the indirect object key, or {@code null} for direct objects.

Methods

SignatureDescription
COSObjectReference(key: COSObjectKey)Creates a reference from a key.
COSObjectReference(objectNumber: int, generationNumber: int)Creates a reference from object and generation numbers.
COSObjectReference(key: COSObjectKey, resolver: ObjectResolver)Creates a reference from a key with an optional resolver.
getKey()COSObjectKeyReturns the indirect object key.
dereference()COSBaseResolves the reference to the actual object.
setResolver(resolver: ObjectResolver)Sets the resolver for lazy loading.
writeTo(os: OutputStream)
accept(visitor: ICOSVisitor<T>)T
equals(o: Object)boolean
hashCode()int
toString()String
isDirty()booleanReturns {@code true} if this object was modified since loading.
setDirty(dirty: boolean)Sets the dirty flag on this object.
isIndirect()booleanReturns whether this object is an indirect object (has an object key).
getObjectKey()COSObjectKeyReturns the indirect object key, or {@code null} for direct objects.
setObjectKey(key: COSObjectKey)Sets the indirect object key.

See Also