public class FontOutputStream
extends java.io.OutputStream
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. |
FontInputStream
Constructor and Description |
---|
FontOutputStream(java.io.OutputStream os)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public FontOutputStream(java.io.OutputStream os)
os
- output stream to wrappublic long position()
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void writeChar(byte c) throws java.io.IOException
c
- Char valuejava.io.IOException
public void writeUShort(int us) throws java.io.IOException
us
- UShort valuejava.io.IOException
public void writeShort(int s) throws java.io.IOException
s
- Short valuejava.io.IOException
public void writeUInt24(int ui) throws java.io.IOException
ui
- UInt24 valuejava.io.IOException
public void writeULong(long ul) throws java.io.IOException
ul
- ULong valuejava.io.IOException
public void writeLong(long l) throws java.io.IOException
l
- Long valuejava.io.IOException
public void writeFixed(int f) throws java.io.IOException
f
- Fixed valuejava.io.IOException
public void writeDateTime(long date) throws java.io.IOException
date
- date/time valuejava.io.IOException