Top Description Fields Constructors Methods
org.apache.fontbox.ttf

public Class TTFTable

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.fontbox.ttf.VerticalHeaderTable, org.apache.fontbox.ttf.VerticalMetricsTable, org.apache.fontbox.ttf.VerticalOriginTable, org.apache.fontbox.ttf.HeaderTable, org.apache.fontbox.ttf.CFFTable, org.apache.fontbox.ttf.CmapTable, org.apache.fontbox.ttf.DigitalSignatureTable, org.apache.fontbox.ttf.GlyphSubstitutionTable, org.apache.fontbox.ttf.GlyphTable, org.apache.fontbox.ttf.HorizontalHeaderTable, org.apache.fontbox.ttf.HorizontalMetricsTable, org.apache.fontbox.ttf.IndexToLocationTable, org.apache.fontbox.ttf.KerningTable, org.apache.fontbox.ttf.MaximumProfileTable, org.apache.fontbox.ttf.NamingTable, org.apache.fontbox.ttf.OS2WindowsMetricsTable, org.apache.fontbox.ttf.OTLTable, org.apache.fontbox.ttf.PostScriptTable
Imports
java.io.IOException

A table in a true type font.
Author
Ben Litchfield

Field Summary

Modifier and TypeField and Description
private long
protected boolean
initialized

Indicates if the table is initialized or not.

private long
private long
private String

Constructor Summary

AccessConstructor and Description
pack-priv
TTFTable()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

Returns the checkSum.
getCheckSum
()

public boolean

Returns:

true if the table is initialized
getInitialized
()

Indicates if the table is already initialized.

public long

Returns:

Returns the length.
getLength
()

public long

Returns:

Returns the offset.
getOffset
()

public String

Returns:

Returns the tag.
getTag
()

pack-priv void
read(TrueTypeFont
The font that is being read.
ttf
,
TTFDataStream
The stream to read the data from.
data
)

This will read the required data from the stream.

pack-priv void
readHeaders(TrueTypeFont
The font that is being read.
ttf
,
TTFDataStream
The stream to read the data from.
data
,
FontHeaders
The class to write the data to.
outHeaders
)

This will read required headers from the stream into outHeaders.

pack-priv void
setCheckSum(long
The checkSum to set.
checkSumValue
)

pack-priv void
setLength(long
The length to set.
lengthValue
)

pack-priv void
setOffset(long
The offset to set.
offsetValue
)

pack-priv void
setTag(String
The tag to set.
tagValue
)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

checkSumback to summary
private long checkSum
initializedback to summary
protected boolean initialized

Indicates if the table is initialized or not.

lengthback to summary
private long length
offsetback to summary
private long offset
tagback to summary
private String tag

Constructor Detail

TTFTableback to summary
pack-priv TTFTable()

Constructor.

Method Detail

getCheckSumback to summary
public long getCheckSum()
Returns:long

Returns the checkSum.

getInitializedback to summary
public boolean getInitialized()

Indicates if the table is already initialized.

Returns:boolean

true if the table is initialized

getLengthback to summary
public long getLength()
Returns:long

Returns the length.

getOffsetback to summary
public long getOffset()
Returns:long

Returns the offset.

getTagback to summary
public String getTag()
Returns:String

Returns the tag.

readback to summary
pack-priv void read(TrueTypeFont ttf, TTFDataStream data) throws IOException

This will read the required data from the stream.

Parameters
ttf:TrueTypeFont

The font that is being read.

data:TTFDataStream

The stream to read the data from.

Exceptions
IOException:
If there is an error reading the data.
readHeadersback to summary
pack-priv void readHeaders(TrueTypeFont ttf, TTFDataStream data, FontHeaders outHeaders) throws IOException

This will read required headers from the stream into outHeaders.

Parameters
ttf:TrueTypeFont

The font that is being read.

data:TTFDataStream

The stream to read the data from.

outHeaders:FontHeaders

The class to write the data to.

Exceptions
IOException:
If there is an error reading the data.
setCheckSumback to summary
pack-priv void setCheckSum(long checkSumValue)
Parameters
checkSumValue:long

The checkSum to set.

setLengthback to summary
pack-priv void setLength(long lengthValue)
Parameters
lengthValue:long

The length to set.

setOffsetback to summary
pack-priv void setOffset(long offsetValue)
Parameters
offsetValue:long

The offset to set.

setTagback to summary
pack-priv void setTag(String tagValue)
Parameters
tagValue:String

The tag to set.