de.intarsys.pdf.cos
Class COSName
java.lang.Object
de.intarsys.pdf.cos.COSDocumentElement
de.intarsys.pdf.cos.COSObject
de.intarsys.pdf.cos.COSPrimitiveObject
de.intarsys.pdf.cos.COSName
- All Implemented Interfaces:
- ICOSExceptionHandler, de.intarsys.tools.component.ISaveStateSupport
public class COSName
- extends COSPrimitiveObject
A name object.
Methods inherited from class de.intarsys.pdf.cos.COSObject |
asArray, asBoolean, asDictionary, asFixed, asInteger, asNull, asNumber, asStream, asString, beConstant, beIndirect, containable, copyOptional, copyShallow, copySubGraph, dereference, getContainer, getDoc, getIndirectObject, isIndirect, isNull, isNumber, isSwapped, toString |
constant
public static COSName constant(String name)
create
public static COSName create(byte[] bytes)
create
public static COSName create(String name)
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.
asName
public COSName asName()
- Overrides:
asName
in class COSObject
- Returns:
- a COSName or
null
byteValue
public byte[] byteValue()
- The bytes that make up this name (without "/")
- Returns:
- The bytes that make up this name (without "/")
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
restoreState
public void restoreState(Object object)
- Specified by:
restoreState
in interface de.intarsys.tools.component.ISaveStateSupport
- Overrides:
restoreState
in class COSObject
saveState
public Object saveState()
stringValue
public String stringValue()
- The string value that makes up this name (without "/")
- Overrides:
stringValue
in class COSObject
- Returns:
- The string value that makes up this name (without "/")
Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.