类 FontOutputStream
java.lang.Object
java.io.OutputStream
com.google.typography.font.sfntly.data.FontOutputStream
- 所有已实现的接口:
Closeable
,Flushable
,AutoCloseable
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
- 另请参阅:
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明long
position()
Get the current position in the stream in bytes.void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) void
writeChar
(byte c) Write a Char value.void
writeDateTime
(long date) Write DateTime value.void
writeFixed
(int f) Write a Fixed value.void
writeLong
(long l) Write a Long value.void
writeShort
(int s) Write a Short value.void
writeUInt24
(int ui) Write a UInt24 value.void
writeULong
(long ul) Write a ULong value.void
writeUShort
(int us) Write a UShort value.从类继承的方法 java.io.OutputStream
close, flush, nullOutputStream
-
字段详细资料
-
out
-
position
private long position
-
-
构造器详细资料
-
FontOutputStream
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
- 指定者:
write
在类中OutputStream
- 抛出:
IOException
-
write
- 覆盖:
write
在类中OutputStream
- 抛出:
IOException
-
write
- 覆盖:
write
在类中OutputStream
- 抛出:
IOException
-
writeChar
Write a Char value.- 参数:
c
- Char value- 抛出:
IOException
-
writeUShort
Write a UShort value.- 参数:
us
- UShort value- 抛出:
IOException
-
writeShort
Write a Short value.- 参数:
s
- Short value- 抛出:
IOException
-
writeUInt24
Write a UInt24 value.- 参数:
ui
- UInt24 value- 抛出:
IOException
-
writeULong
Write a ULong value.- 参数:
ul
- ULong value- 抛出:
IOException
-
writeLong
Write a Long value.- 参数:
l
- Long value- 抛出:
IOException
-
writeFixed
Write a Fixed value.- 参数:
f
- Fixed value- 抛出:
IOException
-
writeDateTime
Write DateTime value.- 参数:
date
- date/time value- 抛出:
IOException
-