class TTCDataStream extends TTFDataStream
Modifier and Type | Field and Description |
---|---|
private TTFDataStream |
stream |
Constructor and Description |
---|
TTCDataStream(TTFDataStream stream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getCurrentPosition()
Get the current position in the stream.
|
java.io.InputStream |
getOriginalData()
This will get the original data file that was used for this stream.
|
long |
getOriginalDataSize()
This will get the original data size that was used for this stream.
|
int |
read()
Read an unsigned byte.
|
int |
read(byte[] b,
int off,
int len) |
long |
readLong()
Read an unsigned byte.
|
short |
readSignedShort()
Read an signed short.
|
int |
readUnsignedShort()
Read an unsigned short.
|
void |
seek(long pos)
Seek into the datasource.
|
read, read32Fixed, readInternationalDate, readSignedByte, readString, readString, readString, readTag, readUnsignedByte, readUnsignedByteArray, readUnsignedInt, readUnsignedShortArray
private final TTFDataStream stream
TTCDataStream(TTFDataStream stream)
public int read() throws java.io.IOException
TTFDataStream
read
in class TTFDataStream
java.io.IOException
- If there is an error reading the data.public long readLong() throws java.io.IOException
TTFDataStream
readLong
in class TTFDataStream
java.io.IOException
- If there is an error reading the data.public int readUnsignedShort() throws java.io.IOException
TTFDataStream
readUnsignedShort
in class TTFDataStream
java.io.IOException
- If there is an error reading the data.public short readSignedShort() throws java.io.IOException
TTFDataStream
readSignedShort
in class TTFDataStream
java.io.IOException
- If there is an error reading the data.public void close() throws java.io.IOException
java.io.IOException
public void seek(long pos) throws java.io.IOException
TTFDataStream
seek
in class TTFDataStream
pos
- The position to seek to.java.io.IOException
- If there is an error seeking to that position.public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class TTFDataStream
b
- The buffer to write to.off
- The offset into the buffer.len
- The length into the buffer.java.io.IOException
- If there is an error reading from the stream.InputStream.read(byte[], int, int )
public long getCurrentPosition() throws java.io.IOException
TTFDataStream
getCurrentPosition
in class TTFDataStream
java.io.IOException
- If an error occurs while reading the stream.public java.io.InputStream getOriginalData() throws java.io.IOException
TTFDataStream
getOriginalData
in class TTFDataStream
java.io.IOException
- If there is an issue reading the data.public long getOriginalDataSize()
TTFDataStream
getOriginalDataSize
in class TTFDataStream