Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
RandomAccessStream Class Reference
Inheritance diagram for RandomAccessStream:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

RandomAccessStream ( InputStream  inputstream)
inline

Constructs a RandomAccessStream from an InputStream. Seeking backwards is supported using a memory cache.

Definition at line 26 of file RandomAccessStream.java.

RandomAccessStream ( RandomAccessFile  ras)
inline

Constructs a RandomAccessStream from an RandomAccessFile.

Definition at line 35 of file RandomAccessStream.java.


The documentation for this class was generated from the following file: