Class CosBoolean
java.lang.Object
com.adobe.internal.pdftoolkit.core.cos.CosObject
com.adobe.internal.pdftoolkit.core.cos.CosScalar
com.adobe.internal.pdftoolkit.core.cos.CosBoolean
Represents a COS Boolean object as defined in section 3.2.1 of the PDF
Reference Manual version 1.4.
-
Field Summary
Fields inherited from class com.adobe.internal.pdftoolkit.core.cos.CosObject
DIRECT, INDIRECT, t_Array, t_Boolean, t_Dictionary, t_KeyAbsent, t_Name, t_Null, t_Numeric, t_ObjectRef, t_Stream, t_String
-
Method Summary
Methods inherited from class com.adobe.internal.pdftoolkit.core.cos.CosObject
doubleValue, equals, getDocument, getObjEOF, getObjGen, getObjNum, getObjPos, getObjRevision, getStreamManager, hexStringValue, intValue, isCompressed, isDirty, isIndirect, longValue, nameValue, numberValue, stringValue, textValue, toString
-
Method Details
-
getType
public int getType()return the type of this CosObject -
booleanValue
public boolean booleanValue()Returns the value of the boolean.- Overrides:
booleanValue
in classCosObject
- Returns:
- boolean
-
getValue
Returns the value as an instance of Boolean -
equals
This method returns true if both CosObjects have same boolean value or they are the same objects. Returns false if passed CosObject is not an instance of CosBoolean.
-