Class IndexData


  • public class IndexData
    extends java.lang.Object
    Class holding the IndexData of a CFF font.
    • Constructor Summary

      Constructors 
      Constructor Description
      IndexData​(int count)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] getBytes​(int index)  
      int getCount()
      Returns the count value.
      int getOffset​(int index)
      Returns the offset at the given index.
      void initData​(int dataSize)
      Initializes the data array with the given size.
      void setData​(int index, int value)
      Sets the data value to the given value.
      void setOffset​(int index, int value)
      Sets the offset value to the given value.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • IndexData

        public IndexData​(int count)
        Constructor.
        Parameters:
        count - number of index values
    • Method Detail

      • getBytes

        public byte[] getBytes​(int index)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getCount

        public int getCount()
        Returns the count value.
        Returns:
        the count value
      • setOffset

        public void setOffset​(int index,
                              int value)
        Sets the offset value to the given value.
        Parameters:
        index - the index of the offset value
        value - the given offset value
      • getOffset

        public int getOffset​(int index)
        Returns the offset at the given index.
        Parameters:
        index - the index
        Returns:
        the offset value at the given index
      • initData

        public void initData​(int dataSize)
        Initializes the data array with the given size.
        Parameters:
        dataSize - the size of the data array
      • setData

        public void setData​(int index,
                            int value)
        Sets the data value to the given value.
        Parameters:
        index - the index of the data value
        value - the given data value