类 ByteArrayTableBuilder<T extends Table>

类型参数:
T - table
直接已知子类:
ControlProgramTable.Builder, ControlValueTable.Builder

public abstract class ByteArrayTableBuilder<T extends Table> extends TableBasedTableBuilder<T>
An abstract builder base for byte array based tables.
作者:
Stuart Gill
  • 构造器详细资料

    • ByteArrayTableBuilder

      protected ByteArrayTableBuilder(Header header, WritableFontData data)
      Constructor.
      参数:
      header -
      data -
    • ByteArrayTableBuilder

      protected ByteArrayTableBuilder(Header header, ReadableFontData data)
      Constructor.
      参数:
      header -
      data -
  • 方法详细资料

    • byteValue

      public int byteValue(int index) throws IOException
      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

      public void setByteValue(int index, byte b) throws IOException
      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
      b - byte value to tset
      抛出:
      IOException
    • byteCount

      public int byteCount() throws IOException
      Get the number of bytes set for this table. It may include padding bytes at the end.
      返回:
      number of bytes for the table
      抛出:
      IOException