|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fontbox.ttf.TTFDataStream
org.apache.fontbox.ttf.MemoryTTFDataStream
public class MemoryTTFDataStream
An interface into a data stream.
| Constructor Summary | |
|---|---|
MemoryTTFDataStream(java.io.InputStream is)
Constructor from a stream. |
|
| Method Summary | |
|---|---|
void |
close()
Close the underlying resources. |
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. |
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. |
| Methods inherited from class org.apache.fontbox.ttf.TTFDataStream |
|---|
read, read32Fixed, readInternationalDate, readSignedByte, readString, readString, readUnsignedByteArray, readUnsignedInt, readUnsignedShortArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryTTFDataStream(java.io.InputStream is)
throws java.io.IOException
is - The stream of read from.
java.io.IOException - If an error occurs while reading from the stream.| Method Detail |
|---|
public long readLong()
throws java.io.IOException
readLong in class TTFDataStreamjava.io.IOException - If there is an error reading the data.
public int readSignedInt()
throws java.io.IOException
java.io.IOException - If there is a problem reading the file.
public int read()
throws java.io.IOException
read in class TTFDataStreamjava.io.IOException - If there is an error reading the data.
public int readUnsignedShort()
throws java.io.IOException
readUnsignedShort in class TTFDataStreamjava.io.IOException - If there is an error reading the data.
public short readSignedShort()
throws java.io.IOException
readSignedShort in class TTFDataStreamjava.io.IOException - If there is an error reading the data.
public void close()
throws java.io.IOException
close in class TTFDataStreamjava.io.IOException - If there is an error closing the resources.
public void seek(long pos)
throws java.io.IOException
seek in class TTFDataStreampos - 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 TTFDataStreamb - 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
getCurrentPosition in class TTFDataStreamjava.io.IOException - If an error occurs while reading the stream.
public java.io.InputStream getOriginalData()
throws java.io.IOException
getOriginalData in class TTFDataStreamjava.io.IOException - If there is an issue reading the data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||