org.apache.fontbox.ttf

Class TTFTable

public class TTFTable extends Object

A table in a true type font.

Version: $Revision: 1.1 $

Author: Ben Litchfield (ben@benlitchfield.com)

Method Summary
longgetCheckSum()
longgetLength()
longgetOffset()
StringgetTag()
voidinitData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
voidsetCheckSum(long checkSumValue)
voidsetLength(long lengthValue)
voidsetOffset(long offsetValue)
voidsetTag(String tagValue)

Method Detail

getCheckSum

public long getCheckSum()

Returns: Returns the checkSum.

getLength

public long getLength()

Returns: Returns the length.

getOffset

public long getOffset()

Returns: Returns the offset.

getTag

public String getTag()

Returns: Returns the tag.

initData

public void initData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.

Parameters: ttf The font that is being read. data The stream to read the data from.

Throws: IOException If there is an error reading the data.

setCheckSum

public void setCheckSum(long checkSumValue)

Parameters: checkSumValue The checkSum to set.

setLength

public void setLength(long lengthValue)

Parameters: lengthValue The length to set.

setOffset

public void setOffset(long offsetValue)

Parameters: offsetValue The offset to set.

setTag

public void setTag(String tagValue)

Parameters: tagValue The tag to set.