org.apache.fontbox.ttf
public class MemoryTTFDataStream extends TTFDataStream
Version: $Revision: 1.2 $
| Constructor Summary | |
|---|---|
| MemoryTTFDataStream(InputStream is)
Constructor from a stream. | |
| Method Summary | |
|---|---|
| void | close()
Close the underlying resources.
|
| long | getCurrentPosition()
Get the current position in the stream. |
| InputStream | getOriginalData() |
| int | read()
Read an unsigned byte. |
| int | read(byte[] b, int off, int len) |
| long | readLong()
Read an unsigned byte. |
| int | readSignedInt()
Read a signed integer.
|
| short | readSignedShort()
Read an signed short.
|
| int | readUnsignedShort()
Read an unsigned short.
|
| void | seek(long pos)
Seek into the datasource.
|
Parameters: is The stream of read from.
Throws: IOException If an error occurs while reading from the stream.
Throws: IOException If there is an error closing the resources.
Returns: The current position in the stream.
Throws: IOException If an error occurs while reading the stream.
Returns: An unsigned byte.
Throws: IOException If there is an error reading the data.
Parameters: b The buffer to write to. off The offset into the buffer. len The length into the buffer.
Returns: The number of bytes read.
Throws: IOException If there is an error reading from the stream.
See Also: java.io.InputStream#read( byte[], int, int )
Returns: An unsigned byte.
Throws: IOException If there is an error reading the data.
Returns: A signed integer.
Throws: IOException If there is a problem reading the file.
Returns: An signed short.
Throws: IOException If there is an error reading the data.
Returns: An unsigned short.
Throws: IOException If there is an error reading the data.
Parameters: pos The position to seek to.
Throws: IOException If there is an error seeking to that position.