org.apache.fontbox.cff

Class CFFDataInput

public class CFFDataInput extends DataInput

This is specialized DataInput. It's used to parse a CFFFont.

Version: $Revision$

Author: Villu Russmann

Constructor Summary
CFFDataInput(byte[] buffer)
Constructor.
Method Summary
intreadCard16()
Read one single Card16 value from the buffer.
intreadCard8()
Read one single Card8 value from the buffer.
intreadOffset(int offSize)
Read the offset from the buffer.
intreadOffSize()
Read the offsize from the buffer.
intreadSID()
Read a SID from the buffer.

Constructor Detail

CFFDataInput

public CFFDataInput(byte[] buffer)
Constructor.

Parameters: buffer the buffer to be read

Method Detail

readCard16

public int readCard16()
Read one single Card16 value from the buffer.

Returns: the card16 value

Throws: IOException if an error occurs during reading

readCard8

public int readCard8()
Read one single Card8 value from the buffer.

Returns: the card8 value

Throws: IOException if an error occurs during reading

readOffset

public int readOffset(int offSize)
Read the offset from the buffer.

Parameters: offSize the given offsize

Returns: the offset

Throws: IOException if an error occurs during reading

readOffSize

public int readOffSize()
Read the offsize from the buffer.

Returns: the offsize

Throws: IOException if an error occurs during reading

readSID

public int readSID()
Read a SID from the buffer.

Returns: the SID

Throws: IOException if an error occurs during reading

Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.