jPod PDF library

de.intarsys.pdf.font
Class CMapBFRangeStringMap

java.lang.Object
  extended by de.intarsys.pdf.font.CMapMap
      extended by de.intarsys.pdf.font.CMapRangeMap
          extended by de.intarsys.pdf.font.CMapBFRangeStringMap

public class CMapBFRangeStringMap
extends CMapRangeMap

A special map from a character code range to a character code range.


Constructor Summary
CMapBFRangeStringMap(byte[] start, byte[] end, byte[] destination)
           
 
Method Summary
 char[] toChars(int codepoint)
          The string value for a CID or null if not applicable.
 int toCID(int codepoint)
          The CID value for the codepoint or 0 if not applicable.
 int toCodepoint(int cid)
          The codepoint for a CID or 0 if not applicable.
 
Methods inherited from class de.intarsys.pdf.font.CMapRangeMap
getEnd, getStart
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMapBFRangeStringMap

public CMapBFRangeStringMap(byte[] start,
                            byte[] end,
                            byte[] destination)
Method Detail

toChars

public char[] toChars(int codepoint)
Description copied from class: CMapMap
The string value for a CID or null if not applicable.

Specified by:
toChars in class CMapMap
Returns:
The string value for a CID.

toCID

public int toCID(int codepoint)
Description copied from class: CMapMap
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.

Specified by:
toCID in class CMapMap
Parameters:
codepoint - The (encoded) codepoint value.
Returns:
The CID value for the codepoint.

toCodepoint

public int toCodepoint(int cid)
Description copied from class: CMapMap
The codepoint for a CID or 0 if not applicable.

Specified by:
toCodepoint in class CMapMap
Returns:
The codepoint for a CID.

jPod PDF library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.