com.sun.pdfview.font.ttf

Class CMapFormat4

public class CMapFormat4 extends CMap

Field Summary
SortedMapsegments
The segments and associated data
Constructor Summary
protected CMapFormat4(short language)
Creates a new instance of CMapFormat0
Method Summary
voidaddSegment(short startCode, short endCode, char[] map)
Add a segment with a map
voidaddSegment(short startCode, short endCode, short idDelta)
Add a segment with an idDelta
ByteBuffergetData()
Get the data in the map as a byte buffer
shortgetEntrySelector()
Get the entry selector
shortgetLength()
Get the length of this table
shortgetRangeShift()
Get the rangeShift()
shortgetSearchRange()
Get the search range
shortgetSegmentCount()
Get the segment count
bytemap(byte src)
Cannot map from a byte
charmap(char src)
Map from char
voidremoveSegment(short startCode, short endCode)
Remove a segment
charreverseMap(short glyphID)
Get the src code which maps to the given glyphID
voidsetData(int length, ByteBuffer data)
Get the data in this map as a ByteBuffer

Field Detail

segments

public SortedMap segments
The segments and associated data

Constructor Detail

CMapFormat4

protected CMapFormat4(short language)
Creates a new instance of CMapFormat0

Method Detail

addSegment

public void addSegment(short startCode, short endCode, char[] map)
Add a segment with a map

addSegment

public void addSegment(short startCode, short endCode, short idDelta)
Add a segment with an idDelta

getData

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

getEntrySelector

public short getEntrySelector()
Get the entry selector

getLength

public short getLength()
Get the length of this table

getRangeShift

public short getRangeShift()
Get the rangeShift()

getSearchRange

public short getSearchRange()
Get the search range

getSegmentCount

public short getSegmentCount()
Get the segment count

map

public byte map(byte src)
Cannot map from a byte

map

public char map(char src)
Map from char

removeSegment

public void removeSegment(short startCode, short endCode)
Remove a segment

reverseMap

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

setData

public void setData(int length, ByteBuffer data)
Get the data in this map as a ByteBuffer