jPod PDF library

de.intarsys.pdf.font
Class CMapMap

java.lang.Object
  extended by de.intarsys.pdf.font.CMapMap
Direct Known Subclasses:
CMapCharMap, CMapRangeMap

public abstract class CMapMap
extends Object

An abstract implementation for map definitions in a CMap.


Method Summary
abstract  char[] toChars(int cid)
          The string value for a CID or null if not applicable.
abstract  int toCID(int codepoint)
          The CID value for the codepoint or 0 if not applicable.
abstract  int toCodepoint(int cid)
          The codepoint for a CID or 0 if not applicable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toChars

public abstract char[] toChars(int cid)
The string value for a CID or null if not applicable.

Parameters:
cid -
Returns:
The string value for a CID.

toCID

public abstract int toCID(int codepoint)
The CID value for the codepoint or 0 if not applicable.

With /ToUnicode maps, this is used to get a UTF_16BE encoded unicode value for a codepoint.

Parameters:
codepoint - The (encoded) codepoint value.
Returns:
The CID value for the codepoint.

toCodepoint

public abstract int toCodepoint(int cid)
The codepoint for a CID or 0 if not applicable.

Parameters:
cid -
Returns:
The codepoint for a CID.

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.