| Modifier and Type | Field and Description |
|---|---|
| private static final TimeZone |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public RandomAccessRead | Returns: A view or null (caller can useread instead). Please close() the resultCreates a view from current position to |
| public abstract long | Returns: The current position in the stream.Get the current position in the stream. |
| public abstract InputStream | Returns: The data that was read from.This will get the original data file that was used for this stream. |
| public abstract long | Returns: The size of the original data.This will get the original data size that was used for this stream. |
| public abstract int | |
| public byte[] | Returns: The byte buffer.The number of bytes to read. numberOfBytes)Read a specific number of bytes from the stream. |
| public abstract int | Returns: The number of bytes read, or -1 at the end of the streamThe buffer to write to. b, int The offset into the buffer. off, int The length into the buffer. len)
|
| public float | Returns: A 32 bit value.Read a 16.16 fixed value, where the first 16 bits are the decimal and the last 16 bits are the fraction. |
| public Calendar | |
| public abstract long | |
| public int | |
| public short | |
| public String | Returns: A string of the desired length.The length of the string to read. length)Read a fixed length ascii string. |
| public String | Returns: A string of the desired length.The length of the string to read in bytes. length, Charset The expected character set of the string. charset)Read a fixed length string. |
| public String | readTag()
Reads a tag, an array of four uint8s used to identify a script, language system, feature, or baseline. |
| public int | |
| public int[] | Returns: An unsigned byte array.the length of the array to be read length)Read an unsigned byte array. |
| public long | |
| public int | |
| public int[] | Returns: An unsigned short array.The length of the array to read. length)Read an unsigned short array. |
| public abstract void |
| TIMEZONE_UTC | back to summary |
|---|---|
| private static final TimeZone TIMEZONE_UTC | |
| TTFDataStream | back to summary |
|---|---|
| pack-priv TTFDataStream() | |
| createSubView | back to summary |
|---|---|
| public RandomAccessRead createSubView(long length) Creates a view from current position to
| |
| getCurrentPosition | back to summary |
|---|---|
| public abstract long getCurrentPosition() throws IOException Get the current position in the stream.
| |
| getOriginalData | back to summary |
|---|---|
| public abstract InputStream getOriginalData() throws IOException This will get the original data file that was used for this stream.
| |
| getOriginalDataSize | back to summary |
|---|---|
| public abstract long getOriginalDataSize() This will get the original data size that was used for this stream.
| |
| read | back to summary |
|---|---|
| public abstract int read() throws IOException Read an unsigned byte.
| |
| read | back to summary |
|---|---|
| public byte[] read(int numberOfBytes) throws IOException Read a specific number of bytes from the stream.
| |
| read | back to summary |
|---|---|
public abstract int read(byte[] b, int off, int len) throws IOException
| |
| read32Fixed | back to summary |
|---|---|
| public float read32Fixed() throws IOException Read a 16.16 fixed value, where the first 16 bits are the decimal and the last 16 bits are the fraction.
| |
| readInternationalDate | back to summary |
|---|---|
| public Calendar readInternationalDate() throws IOException Read an eight byte international date.
| |
| readLong | back to summary |
|---|---|
| public abstract long readLong() throws IOException Read an unsigned byte.
| |
| readSignedByte | back to summary |
|---|---|
| public int readSignedByte() throws IOException Read a signed byte.
| |
| readSignedShort | back to summary |
|---|---|
| public short readSignedShort() throws IOException Read a signed short.
| |
| readString | back to summary |
|---|---|
| public String readString(int length) throws IOException Read a fixed length ascii string.
| |
| readString | back to summary |
|---|---|
| public String readString(int length, Charset charset) throws IOException Read a fixed length string.
| |
| readTag | back to summary |
|---|---|
| public String readTag() throws IOException Reads a tag, an array of four uint8s used to identify a script, language system, feature, or baseline. | |
| readUnsignedByte | back to summary |
|---|---|
| public int readUnsignedByte() throws IOException Read an unsigned byte. Similar to
| |
| readUnsignedByteArray | back to summary |
|---|---|
| public int[] readUnsignedByteArray(int length) throws IOException Read an unsigned byte array.
| |
| readUnsignedInt | back to summary |
|---|---|
| public long readUnsignedInt() throws IOException Read an unsigned integer.
| |
| readUnsignedShort | back to summary |
|---|---|
| public int readUnsignedShort() throws IOException Read an unsigned short.
| |
| readUnsignedShortArray | back to summary |
|---|---|
| public int[] readUnsignedShortArray(int length) throws IOException Read an unsigned short array.
| |
| seek | back to summary |
|---|---|
| public abstract void seek(long pos) throws IOException Seek into the datasource.
| |