| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv String | |
| pack-priv long | |
| pack-priv RandomAccessFile | |
| private byte[] | |
| private int | |
| private static final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | |
| public String | |
| public synchronized long | |
| public synchronized boolean | Returns: returns true if the file opened, false if the file was opened already or if it failed to open the file.Opens the file. |
| public synchronized FontFileReader. | |
| private synchronized int | Returns: 0 if there was a problem, else number of bytes read.Called internally to readBlock(). |
| public synchronized void |
| filename | back to summary |
|---|---|
| pack-priv String filename | |
| filesize | back to summary |
|---|---|
| pack-priv long filesize | |
| raFile | back to summary |
|---|---|
| pack-priv RandomAccessFile raFile | |
| readBuffer | back to summary |
|---|---|
| private byte[] readBuffer | |
| readBufferLen | back to summary |
|---|---|
| private int readBufferLen | |
| READBUFFERSIZE | back to summary |
|---|---|
| private static final int READBUFFERSIZE | |
| readBufferStart | back to summary |
|---|---|
| private int readBufferStart | |
| FontFileReader | back to summary |
|---|---|
| public FontFileReader(String filename) | |
| closeFile | back to summary |
|---|---|
| public synchronized void closeFile() throws IOException | |
| getFilename | back to summary |
|---|---|
| public String getFilename() | |
| getLength | back to summary |
|---|---|
| public synchronized long getLength() | |
| openFile | back to summary |
|---|---|
| public synchronized boolean openFile() Opens the file.
| |
| readBlock | back to summary |
|---|---|
| public synchronized FontFileReader. | |
| readFromFile | back to summary |
|---|---|
| private synchronized int readFromFile(byte[] buffer, long seekPos, int requestedLen) Called internally to readBlock(). Don't use directly. Caller must ensure dataLen < buffer length This method will sanity check that you aren't reading past the end of the file.
| |
| reset | back to summary |
|---|---|
| public synchronized void reset() throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv | Buffer(byte[]
the buffer data, int the starting position within the data array.
bufStart)pos is considered to be the start of this Buffer object.
There is no protection against reading past the end, caller is
assumed to be careful.
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv byte | |
| pack-priv byte | |
| pack-priv void | |
| pack-priv char | |
| pack-priv char | |
| pack-priv int | |
| pack-priv int | |
| pack-priv short | |
| pack-priv short | |
| pack-priv void | |
| pack-priv void |
| data | back to summary |
|---|---|
| pack-priv byte[] data | |
| orig | back to summary |
|---|---|
| pack-priv int orig | |
| pos | back to summary |
|---|---|
| pack-priv int pos | |
| Buffer | back to summary |
|---|---|
pack-priv Buffer(byte[] data, int bufStart)
| |
| capacity | back to summary |
|---|---|
| pack-priv int capacity() | |
| get | back to summary |
|---|---|
| pack-priv byte get() | |
| get | back to summary |
|---|---|
| pack-priv byte get(int tpos) | |
| get | back to summary |
|---|---|
| pack-priv void get(int startPos, byte[] dest, int destPos, int destLen) | |
| getChar | back to summary |
|---|---|
| pack-priv char getChar(int tpos) | |
| getChar | back to summary |
|---|---|
| pack-priv char getChar() | |
| getInt | back to summary |
|---|---|
| pack-priv int getInt(int tpos) | |
| getInt | back to summary |
|---|---|
| pack-priv int getInt() | |
| getShort | back to summary |
|---|---|
| pack-priv short getShort(int tpos) | |
| getShort | back to summary |
|---|---|
| pack-priv short getShort() | |
| position | back to summary |
|---|---|
| pack-priv void position(int newPos) | |
| skip | back to summary |
|---|---|
| pack-priv void skip(int nbytes) | |