Package org.apache.fop.fonts.cff
Class CFFDataReader.CFFIndexData
java.lang.Object
org.apache.fop.fonts.cff.CFFDataReader.CFFSubTable
org.apache.fop.fonts.cff.CFFDataReader.CFFIndexData
- Enclosing class:
CFFDataReader
An object used to hold index data from the CFF data
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getData()intint[]intbyte[]getValue(int index) Retrieves data from the index dataintgetValueLength(int index) intgetValuePosition(int index) voidparseIndexHeader(org.apache.fontbox.cff.CFFDataInput cffData) Parses index data from an index object found within the CFF byte datavoidsetData(int position, int length) voidsetNumObjects(int numObjects) voidsetOffsets(int[] offsets) voidsetOffSize(int offSize) Methods inherited from class org.apache.fop.fonts.cff.CFFDataReader.CFFSubTable
getByteData, setByteData
-
Constructor Details
-
CFFIndexData
public CFFIndexData()
-
-
Method Details
-
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
- Throws:
IOException
-
parseIndexHeader
Parses index data from an index object found within the CFF byte data- Parameters:
cffData- A byte array containing the CFF data- Throws:
IOException- Throws an IO Exception if an error occurs
-
getValue
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:
IOException- Throws an IO Exception if an error occurs
-
getValuePosition
public int getValuePosition(int index) -
getValueLength
public int getValueLength(int index)
-