intarsys PDF library API

de.intarsys.pdf.cos
Class COSName

java.lang.Object
  extended by de.intarsys.pdf.cos.COSDocumentElement
      extended by de.intarsys.pdf.cos.COSObject
          extended by de.intarsys.pdf.cos.COSPrimitiveObject
              extended by de.intarsys.pdf.cos.COSName
All Implemented Interfaces:
ICOSExceptionHandler, de.intarsys.tools.component.ISaveStateSupport

public class COSName
extends COSPrimitiveObject

A name object.


Field Summary
 
Fields inherited from class de.intarsys.pdf.cos.COSObject
CONSTANT_CONTAINER, NULL_CONTAINER, SLOT_CONTAINER
 
Method Summary
 Object accept(ICOSObjectVisitor visitor)
          Accept a visitor object.
 COSName asName()
           
 byte[] byteValue()
          The bytes that make up this name (without "/")
static COSName constant(String name)
           
static COSName create(byte[] bytes)
           
static COSName create(String name)
           
 boolean equals(Object o)
           
 int hashCode()
           
 void restoreState(Object object)
           
 Object saveState()
           
 String stringValue()
          The string value that makes up this name (without "/")
 
Methods inherited from class de.intarsys.pdf.cos.COSPrimitiveObject
addObjectListener, basicIterator, copyDeep, copyDeep, isDangling, isObjectListenerAvailable, isPrimitive, iterator, removeObjectListener
 
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
 
Methods inherited from class de.intarsys.pdf.cos.COSDocumentElement
handleException, isReference
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

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 "/")

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.