Package org.apache.fontbox.cff
Class CFFDataInput
java.lang.Object
org.apache.fontbox.cff.DataInput
org.apache.fontbox.cff.CFFDataInput
This is specialized DataInput. It's used to parse a CFFFont.
- Version:
- $Revision$
- Author:
- Villu Ruusmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintRead one single Card16 value from the buffer.intRead one single Card8 value from the buffer.intreadOffset(int offSize) Read the offset from the buffer.intRead the offsize from the buffer.intreadSID()Read a SID from the buffer.Methods inherited from class org.apache.fontbox.cff.DataInput
getPosition, getString, hasRemaining, length, readByte, readBytes, readInt, readShort, readUnsignedByte, readUnsignedShort, setPosition
-
Constructor Details
-
CFFDataInput
public CFFDataInput(byte[] buffer) Constructor.- Parameters:
buffer- the buffer to be read
-
-
Method Details
-
readCard8
Read one single Card8 value from the buffer.- Returns:
- the card8 value
- Throws:
IOException- if an error occurs during reading
-
readCard16
Read one single Card16 value from the buffer.- Returns:
- the card16 value
- Throws:
IOException- if an error occurs during reading
-
readOffset
Read the offset from the buffer.- Parameters:
offSize- the given offsize- Returns:
- the offset
- Throws:
IOException- if an error occurs during reading
-
readOffSize
Read the offsize from the buffer.- Returns:
- the offsize
- Throws:
IOException- if an error occurs during reading
-
readSID
Read a SID from the buffer.- Returns:
- the SID
- Throws:
IOException- if an error occurs during reading
-