类 FontOutputStream

java.lang.Object
java.io.OutputStream
com.google.typography.font.sfntly.data.FontOutputStream
所有已实现的接口:
Closeable, Flushable, AutoCloseable

public class FontOutputStream extends OutputStream
An output stream for writing font data. The data types used are as listed:
BYTE 8-bit unsigned integer.
CHAR 8-bit signed integer.
USHORT 16-bit unsigned integer.
SHORT 16-bit signed integer.
UINT24 24-bit unsigned integer.
ULONG 32-bit unsigned integer.
LONG 32-bit signed integer.
Fixed 32-bit signed fixed-point number (16.16)
FUNIT Smallest measurable distance in the em space.
FWORD 16-bit signed integer (SHORT) that describes a quantity in FUnits.
UFWORD 16-bit unsigned integer (USHORT) that describes a quantity in FUnits.
F2DOT14 16-bit signed fixed number with the low 14 bits of fraction (2.14).
LONGDATETIME Date represented in number of seconds since 12:00 midnight, January 1, 1904. The value is represented as a signed 64-bit integer.
作者:
Stuart Gill
另请参阅:
  • 字段详细资料

    • out

      private final OutputStream out
    • position

      private long position
  • 构造器详细资料

    • FontOutputStream

      public FontOutputStream(OutputStream os)
      Constructor.
      参数:
      os - output stream to wrap
  • 方法详细资料

    • position

      public long position()
      Get the current position in the stream in bytes.
      返回:
      the current position in bytes
    • write

      public void write(int b) throws IOException
      指定者:
      write 在类中 OutputStream
      抛出:
      IOException
    • write

      public void write(byte[] b) throws IOException
      覆盖:
      write 在类中 OutputStream
      抛出:
      IOException
    • write

      public void write(byte[] b, int off, int len) throws IOException
      覆盖:
      write 在类中 OutputStream
      抛出:
      IOException
    • writeChar

      public void writeChar(byte c) throws IOException
      Write a Char value.
      参数:
      c - Char value
      抛出:
      IOException
    • writeUShort

      public void writeUShort(int us) throws IOException
      Write a UShort value.
      参数:
      us - UShort value
      抛出:
      IOException
    • writeShort

      public void writeShort(int s) throws IOException
      Write a Short value.
      参数:
      s - Short value
      抛出:
      IOException
    • writeUInt24

      public void writeUInt24(int ui) throws IOException
      Write a UInt24 value.
      参数:
      ui - UInt24 value
      抛出:
      IOException
    • writeULong

      public void writeULong(long ul) throws IOException
      Write a ULong value.
      参数:
      ul - ULong value
      抛出:
      IOException
    • writeLong

      public void writeLong(long l) throws IOException
      Write a Long value.
      参数:
      l - Long value
      抛出:
      IOException
    • writeFixed

      public void writeFixed(int f) throws IOException
      Write a Fixed value.
      参数:
      f - Fixed value
      抛出:
      IOException
    • writeDateTime

      public void writeDateTime(long date) throws IOException
      Write DateTime value.
      参数:
      date - date/time value
      抛出:
      IOException