类 ByteArrayTableBuilder<T extends Table>
java.lang.Object
com.google.typography.font.sfntly.table.FontDataTable.Builder<T>
com.google.typography.font.sfntly.table.Table.Builder<T>
com.google.typography.font.sfntly.table.TableBasedTableBuilder<T>
com.google.typography.font.sfntly.table.ByteArrayTableBuilder<T>
- 类型参数:
T
- table
An abstract builder base for byte array based tables.
- 作者:
- Stuart Gill
-
构造器概要
构造器限定符构造器说明protected
ByteArrayTableBuilder
(Header header, ReadableFontData data) Constructor.protected
ByteArrayTableBuilder
(Header header, WritableFontData data) Constructor. -
方法概要
修饰符和类型方法说明int
Get the number of bytes set for this table.int
byteValue
(int index) Get the byte value at the specified index.void
setByteValue
(int index, byte b) Get the byte value at the specified index.从类继承的方法 com.google.typography.font.sfntly.table.TableBasedTableBuilder
build, subDataSet, subDataSizeToSerialize, subReadyToSerialize, subSerialize, table
从类继承的方法 com.google.typography.font.sfntly.table.Table.Builder
getBuilder, header, notifyPostTableBuild, toString
从类继承的方法 com.google.typography.font.sfntly.table.FontDataTable.Builder
changed, containedModelChanged, currentModelChanged, data, dataChanged, internalReadData, internalWriteData, modelChanged, readyToBuild, setData, setData, setModelChanged, setModelChanged, subBuildTable
-
构造器详细资料
-
ByteArrayTableBuilder
Constructor.- 参数:
header
-data
-
-
ByteArrayTableBuilder
Constructor.- 参数:
header
-data
-
-
-
方法详细资料
-
byteValue
Get the byte value at the specified index. The index is relative to the start of the table.- 参数:
index
- index relative to the start of the table- 返回:
- byte value at the given index
- 抛出:
IOException
-
setByteValue
Get the byte value at the specified index. The index is relative to the start of the table.- 参数:
index
- index relative to the start of the tableb
- byte value to tset- 抛出:
IOException
-
byteCount
Get the number of bytes set for this table. It may include padding bytes at the end.- 返回:
- number of bytes for the table
- 抛出:
IOException
-