public class FontInputStream
extends java.io.FilterInputStream
| 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. |
FontOutputStream| Constructor and Description |
|---|
FontInputStream(java.io.InputStream is)
Constructor.
|
FontInputStream(java.io.InputStream is,
int length)
Constructor for a bounded font input stream.
|
| Modifier and Type | Method and Description |
|---|---|
long |
position()
Get the current position in the stream in bytes.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
int |
readChar()
Read a Char value.
|
long |
readDateTimeAsLong()
Read a DateTime value as a long.
|
int |
readFixed()
Read a Fixed value.
|
int |
readLong()
Read a Long value.
|
int |
readShort()
Read a Short value.
|
int |
readUInt24()
Read a UInt24 value.
|
long |
readULong()
Read a ULong value.
|
int |
readULongAsInt()
Read a ULong value as an int.
|
int |
readUShort()
Read a UShort value.
|
long |
skip(long n) |
public FontInputStream(java.io.InputStream is)
is - input stream to wrappublic FontInputStream(java.io.InputStream is,
int length)
is - input stream to wraplength - the maximum length of bytes to readpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long position()
public int readChar()
throws java.io.IOException
java.io.IOExceptionpublic int readUShort()
throws java.io.IOException
java.io.IOExceptionpublic int readShort()
throws java.io.IOException
java.io.IOExceptionpublic int readUInt24()
throws java.io.IOException
java.io.IOExceptionpublic long readULong()
throws java.io.IOException
java.io.IOExceptionpublic int readULongAsInt()
throws java.io.IOException
ArithmeticException is thrown.java.io.IOExceptionjava.lang.ArithmeticExceptionpublic int readLong()
throws java.io.IOException
java.io.IOExceptionpublic int readFixed()
throws java.io.IOException
java.io.IOExceptionpublic long readDateTimeAsLong()
throws java.io.IOException
java.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOException