| java.lang.Object com.sun.pdfview.font.ttf.CMap
All known Subclasses: com.sun.pdfview.font.ttf.CMapFormat0, com.sun.pdfview.font.ttf.CMapFormat4,
CMap | abstract public class CMap (Code) | | author: jkaplan |
Constructor Summary | |
protected | CMap(short format, short language) |
Method Summary | |
public static CMap | createMap(short format, short language) | abstract public ByteBuffer | getData() | public short | getFormat() | public short | getLanguage() | abstract public short | getLength() | 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. | abstract public byte | map(byte src) | abstract public char | map(char src) | abstract public char | reverseMap(short glyphID) | abstract public void | setData(int length, ByteBuffer data) | public String | toString() |
CMap | protected CMap(short format, short language)(Code) | | Creates a new instance of CMap
Don't use this directly, use CMap.createMap()
|
createMap | public static CMap createMap(short format, short language)(Code) | | Create a map for the given format and language
|
getData | abstract public ByteBuffer getData()(Code) | | Get the data in this map as a byte buffer
|
getFormat | public short getFormat()(Code) | | Get the format of this map
|
getLanguage | public short getLanguage()(Code) | | Get the language of this map
|
getLength | abstract public short getLength()(Code) | | Get the length of this map
|
getMap | public static CMap getMap(ByteBuffer data)(Code) | | Get a map from the given data
This method reads the format, data and length variables of
the map.
|
map | abstract public byte map(byte src)(Code) | | Map an 8 bit value to another 8 bit value
|
map | abstract public char map(char src)(Code) | | Map a 16 bit value to another 16 but value
|
reverseMap | abstract public char reverseMap(short glyphID)(Code) | | Get the src code which maps to the given glyphID
|
setData | abstract public void setData(int length, ByteBuffer data)(Code) | | Set the data for this map
|
toString | public String toString()(Code) | | Print a pretty string
|
|
|