Class CMapFormat6

java.lang.Object
org.loboevolution.pdfview.font.ttf.CMap
org.loboevolution.pdfview.font.ttf.CMapFormat6

public class CMapFormat6 extends CMap

CMapFormat6 class.

Author jkaplan

  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    CMapFormat6(short language)
    Creates a new instance of CMapFormat0
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the data in this map as a byte buffer
    short
    Get the length of this map
    byte
    map(byte src)
    Map an 8 bit value to another 8 bit value
    char
    map(char src)
    Map a 16 bit value to another 16 but value
    char
    reverseMap(short glyphID)
    Get the src code which maps to the given glyphID
    void
    setData(int length, ByteBuffer data)
    Set the data for this map

    Methods inherited from class org.loboevolution.pdfview.font.ttf.CMap

    createMap, getMap, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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 map

      Get the length of this table

      Specified by:
      getLength in class CMap
      Returns:
      a short.
    • map

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

      Cannot map from a byte

      Specified by:
      map in class CMap
      Parameters:
      src - a byte.
      Returns:
      a byte.
    • map

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

      Map from char

      Specified by:
      map in class CMap
      Parameters:
      src - a char.
      Returns:
      a char.
    • reverseMap

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

      Get the src code which maps to the given glyphID

      Specified by:
      reverseMap in class CMap
      Parameters:
      glyphID - a short.
      Returns:
      a char.
    • setData

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

      Get the data in this map as a ByteBuffer

      Specified by:
      setData in class CMap
      Parameters:
      length - a Integer object.
      data - a ByteBuffer object.
    • getData

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

      Get the data in the map as a byte buffer

      Specified by:
      getData in class CMap
      Returns:
      a ByteBuffer object.