Package org.apache.fontbox.ttf
Class TTFTable
- java.lang.Object
 - 
- org.apache.fontbox.ttf.TTFTable
 
 
- 
- Direct Known Subclasses:
 CMAPTable,DigitalSignatureTable,GlyphTable,HeaderTable,HorizontalHeaderTable,HorizontalMetricsTable,IndexToLocationTable,MaximumProfileTable,NamingTable,OS2WindowsMetricsTable,PostScriptTable
public class TTFTable extends java.lang.ObjectA table in a true type font.- Author:
 - Ben Litchfield (ben@benlitchfield.com)
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected booleaninitializedIndicates if the table is initialized or not. 
- 
Constructor Summary
Constructors Constructor Description TTFTable() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCheckSum()booleangetInitialized()Indicates if the table is already initialized.longgetLength()longgetOffset()java.lang.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(java.lang.String tagValue) 
 - 
 
- 
- 
Method Detail
- 
getCheckSum
public long getCheckSum()
- Returns:
 - Returns the checkSum.
 
 
- 
setCheckSum
public void setCheckSum(long checkSumValue)
- Parameters:
 checkSumValue- The checkSum to set.
 
- 
getLength
public long getLength()
- Returns:
 - Returns the length.
 
 
- 
setLength
public void setLength(long lengthValue)
- Parameters:
 lengthValue- The length to set.
 
- 
getOffset
public long getOffset()
- Returns:
 - Returns the offset.
 
 
- 
setOffset
public void setOffset(long offsetValue)
- Parameters:
 offsetValue- The offset to set.
 
- 
getTag
public java.lang.String getTag()
- Returns:
 - Returns the tag.
 
 
- 
setTag
public void setTag(java.lang.String tagValue)
- Parameters:
 tagValue- The tag to set.
 
- 
getInitialized
public boolean getInitialized()
Indicates if the table is already initialized.- Returns:
 - true if the table is initialized
 
 
- 
initData
public void initData(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
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:
 java.io.IOException- If there is an error reading the data.
 
 - 
 
 -