Class CMapFormat6
java.lang.Object
org.loboevolution.pdfview.font.ttf.CMap
org.loboevolution.pdfview.font.ttf.CMapFormat6
CMapFormat6 class.
Author jkaplan
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCMapFormat6(short language) Creates a new instance of CMapFormat0 -
Method Summary
Modifier and TypeMethodDescriptiongetData()Get the data in this map as a byte buffershortGet the length of this mapbytemap(byte src) Map an 8 bit value to another 8 bit valuecharmap(char src) Map a 16 bit value to another 16 but valuecharreverseMap(short glyphID) Get the src code which maps to the given glyphIDvoidsetData(int length, ByteBuffer data) Set the data for this map
-
Constructor Details
-
CMapFormat6
protected CMapFormat6(short language) Creates a new instance of CMapFormat0- Parameters:
language- a short.
-
-
Method Details
-
getLength
public short getLength()Get the length of this mapGet the length of this table
-
map
public byte map(byte src) Map an 8 bit value to another 8 bit valueCannot map from a byte
-
map
public char map(char src) Map a 16 bit value to another 16 but valueMap from char
-
reverseMap
public char reverseMap(short glyphID) Get the src code which maps to the given glyphIDGet the src code which maps to the given glyphID
- Specified by:
reverseMapin classCMap- Parameters:
glyphID- a short.- Returns:
- a char.
-
setData
Set the data for this mapGet the data in this map as a ByteBuffer
- Specified by:
setDatain classCMap- Parameters:
length- aIntegerobject.data- aByteBufferobject.
-
getData
Get the data in this map as a byte bufferGet the data in the map as a byte buffer
- Specified by:
getDatain classCMap- Returns:
- a
ByteBufferobject.
-