jPod PDF library

de.intarsys.pdf.font
Class CharacterSelectorCID

java.lang.Object
  extended by de.intarsys.pdf.font.CharacterSelector
      extended by de.intarsys.pdf.font.CharacterSelectorCID

public class CharacterSelectorCID
extends CharacterSelector

A selector based on a multi byte sequence.

The implementation limit defined upon a CID value is 65535 (two bytes).


Field Summary
 
Fields inherited from class de.intarsys.pdf.font.CharacterSelector
Notdef, NotdefCID
 
Constructor Summary
CharacterSelectorCID(byte[] bytes, int offset, int length)
           
CharacterSelectorCID(int value)
           
 
Method Summary
 int getLength()
          The number of bytes this selector occupies.
 int getValue()
          The integer equivalent of the selector.
 
Methods inherited from class de.intarsys.pdf.font.CharacterSelector
getFontNumber
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterSelectorCID

public CharacterSelectorCID(byte[] bytes,
                            int offset,
                            int length)

CharacterSelectorCID

public CharacterSelectorCID(int value)
Method Detail

getLength

public int getLength()
Description copied from class: CharacterSelector
The number of bytes this selector occupies.

Specified by:
getLength in class CharacterSelector
Returns:
The number of bytes this selector occupies.

getValue

public int getValue()
Description copied from class: CharacterSelector
The integer equivalent of the selector.

A selector must not be larger than the platform integer size.

Specified by:
getValue in class CharacterSelector
Returns:
The integer equivalent of the selector.

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.