com.sun.pdfview.font.ttf

Class CMap

public abstract class CMap extends Object

Constructor Summary
protected CMap(short format, short language)
Creates a new instance of CMap Don't use this directly, use CMap.createMap()
Method Summary
static CMapcreateMap(short format, short language)
Create a map for the given format and language
abstract ByteBuffergetData()
Get the data in this map as a byte buffer
shortgetFormat()
Get the format of this map
shortgetLanguage()
Get the language of this map
abstract shortgetLength()
Get the length of this map
static CMapgetMap(ByteBuffer data)
Get a map from the given data This method reads the format, data and length variables of the map.
abstract bytemap(byte src)
Map an 8 bit value to another 8 bit value
abstract charmap(char src)
Map a 16 bit value to another 16 but value
abstract charreverseMap(short glyphID)
Get the src code which maps to the given glyphID
abstract voidsetData(int length, ByteBuffer data)
Set the data for this map

Constructor Detail

CMap

protected CMap(short format, short language)
Creates a new instance of CMap Don't use this directly, use CMap.createMap()

Method Detail

createMap

public static CMap createMap(short format, short language)
Create a map for the given format and language

getData

public abstract ByteBuffer getData()
Get the data in this map as a byte buffer

getFormat

public short getFormat()
Get the format of this map

getLanguage

public short getLanguage()
Get the language of this map

getLength

public abstract short getLength()
Get the length of this map

getMap

public static CMap getMap(ByteBuffer data)
Get a map from the given data This method reads the format, data and length variables of the map.

map

public abstract byte map(byte src)
Map an 8 bit value to another 8 bit value

map

public abstract char map(char src)
Map a 16 bit value to another 16 but value

reverseMap

public abstract char reverseMap(short glyphID)
Get the src code which maps to the given glyphID

setData

public abstract void setData(int length, ByteBuffer data)
Set the data for this map