Class CFFDataReader.CFFIndexData

    • Constructor Detail

      • CFFIndexData

        public CFFIndexData()
    • Method Detail

      • setNumObjects

        public void setNumObjects​(int numObjects)
      • getNumObjects

        public int getNumObjects()
      • setOffSize

        public void setOffSize​(int offSize)
      • getOffSize

        public int getOffSize()
      • setOffsets

        public void setOffsets​(int[] offsets)
      • getOffsets

        public int[] getOffsets()
      • setData

        public void setData​(int position,
                            int length)
      • getData

        public byte[] getData()
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseIndexHeader

        public void parseIndexHeader​(org.apache.fontbox.cff.CFFDataInput cffData)
                              throws java.io.IOException
        Parses index data from an index object found within the CFF byte data
        Parameters:
        cffData - A byte array containing the CFF data
        Throws:
        java.io.IOException - Throws an IO Exception if an error occurs
      • getValue

        public byte[] getValue​(int index)
                        throws java.io.IOException
        Retrieves data from the index data
        Parameters:
        index - The index position of the data to retrieve
        Returns:
        Returns the byte data for the given index
        Throws:
        java.io.IOException - Throws an IO Exception if an error occurs
      • getValuePosition

        public int getValuePosition​(int index)
      • getValueLength

        public int getValueLength​(int index)