Squiz Matrix
4.12.2
|
Public Member Functions | |
RandomAccessStream (InputStream inputstream) | |
RandomAccessStream (RandomAccessFile ras) | |
int | getFilePointer () throws IOException |
int | read () throws IOException |
int | read (byte[] bytes, int off, int len) throws IOException |
final void | readFully (byte[] bytes) throws IOException |
void | seek (int loc) throws IOException |
final int | readInt () throws IOException |
final long | readLong () throws IOException |
final double | readDouble () throws IOException |
final short | readShort () throws IOException |
final float | readFloat () throws IOException |
void | close () throws IOException |
This is a class that uses a memory cache to allow seeking within an InputStream. Based on the JAI MemoryCacheSeekableStream class. Can also be constructed from a RandomAccessFile, which uses less memory since the memory cache is not required.
Definition at line 11 of file RandomAccessStream.java.
|
inline |
Constructs a RandomAccessStream from an InputStream. Seeking backwards is supported using a memory cache.
Definition at line 26 of file RandomAccessStream.java.
|
inline |
Constructs a RandomAccessStream from an RandomAccessFile.
Definition at line 35 of file RandomAccessStream.java.