Package org.apache.fontbox.cff
Class CFFDataInput
- java.lang.Object
-
- org.apache.fontbox.cff.DataInput
-
- org.apache.fontbox.cff.CFFDataInput
-
public class CFFDataInput extends DataInput
This is specialized DataInput. It's used to parse a CFFFont.- Version:
- $Revision$
- Author:
- Villu Ruusmann
-
-
Constructor Summary
Constructors Constructor Description CFFDataInput(byte[] buffer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
readCard16()
Read one single Card16 value from the buffer.int
readCard8()
Read one single Card8 value from the buffer.int
readOffset(int offSize)
Read the offset from the buffer.int
readOffSize()
Read the offsize from the buffer.int
readSID()
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
-
-
-
-
Method Detail
-
readCard8
public int readCard8() throws java.io.IOException
Read one single Card8 value from the buffer.- Returns:
- the card8 value
- Throws:
java.io.IOException
- if an error occurs during reading
-
readCard16
public int readCard16() throws java.io.IOException
Read one single Card16 value from the buffer.- Returns:
- the card16 value
- Throws:
java.io.IOException
- if an error occurs during reading
-
readOffset
public int readOffset(int offSize) throws java.io.IOException
Read the offset from the buffer.- Parameters:
offSize
- the given offsize- Returns:
- the offset
- Throws:
java.io.IOException
- if an error occurs during reading
-
readOffSize
public int readOffSize() throws java.io.IOException
Read the offsize from the buffer.- Returns:
- the offsize
- Throws:
java.io.IOException
- if an error occurs during reading
-
readSID
public int readSID() throws java.io.IOException
Read a SID from the buffer.- Returns:
- the SID
- Throws:
java.io.IOException
- if an error occurs during reading
-
-