de.intarsys.pdf.cos
Class COSInteger
java.lang.Object
de.intarsys.pdf.cos.COSDocumentElement
de.intarsys.pdf.cos.COSObject
de.intarsys.pdf.cos.COSPrimitiveObject
de.intarsys.pdf.cos.COSNumber
de.intarsys.pdf.cos.COSInteger
- All Implemented Interfaces:
- ICOSExceptionHandler, de.intarsys.tools.component.ISaveStateSupport
public class COSInteger
- extends COSNumber
This class represents integer numbers in pdf
Methods inherited from class de.intarsys.pdf.cos.COSObject |
asArray, asBoolean, asDictionary, asFixed, asName, asNull, asStream, asString, beConstant, beIndirect, containable, copyOptional, copyShallow, copySubGraph, dereference, getContainer, getDoc, getIndirectObject, isIndirect, isNull, isSwapped, restoreState, stringValue, toString |
create
public static COSInteger create(byte[] bytes,
int start,
int length)
create
public static COSInteger create(int value)
accept
public Object accept(ICOSObjectVisitor visitor)
throws COSVisitorException
- Description copied from class:
COSDocumentElement
- Accept a visitor object. The receiver selects the correct implementation
in the
visitor
by "double dispatching".
- Specified by:
accept
in class COSDocumentElement
- Parameters:
visitor
- The object visiting the receiver.
- Returns:
- Object An object depending on the visitor semantics.
- Throws:
COSVisitorException
- An exception depending on the visitor semantics.
asInteger
public COSInteger asInteger()
- Overrides:
asInteger
in class COSObject
- Returns:
- a COSInteger or
null
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
floatValue
public float floatValue()
- Description copied from class:
COSNumber
- Answer the value of the receiver as a float
- Specified by:
floatValue
in class COSNumber
- Returns:
- Answer the value of the receiver as a float
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
intValue
public int intValue()
- Description copied from class:
COSNumber
- Answer the value of the receiver as a int
- Specified by:
intValue
in class COSNumber
- Returns:
- Answer the value of the receiver as a int
saveState
public Object saveState()
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.