COSInteger

Overview

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

PDF integer object (§7.3.3, ISO 32000-1:2008).

Properties

NameTypeAccessDescription
ZEROCOSIntegerReadThe constant for value 0.
ONECOSIntegerReadThe constant for value 1.
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
valueOf(value: long)COSIntegerReturns a COSInteger for the given value.
longValue()longReturns the value as a {@code long}.
intValue()intReturns the value as an {@code int}, throwing if it overflows.
floatValue()floatReturns the value as a {@code float}.
setObjectKey(key: COSObjectKey)Protects cached flyweight instances from object key assignment.
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.

See Also