BoundedInputStream Class Reference

Inherits java::io::InputStream.

Collaboration diagram for BoundedInputStream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 BoundedInputStream (InputStream inputStream, long start, long remaining) throws IOException
int read (byte[] b, int off, int len) throws IOException
int read () throws IOException

Private Attributes

InputStream _inputStream
long _loc
long _remaining


Detailed Description

InputStream that delegates requests to the underlying RandomAccessFile, making sure that only bytes from a certain range can be read.

Constructor & Destructor Documentation

BoundedInputStream ( InputStream  inputStream,
long  start,
long  remaining 
) throws IOException


Member Function Documentation

int read ( byte[]  b,
int  off,
int  len 
) throws IOException

int read (  )  throws IOException


Member Data Documentation

InputStream _inputStream [private]

long _loc [private]

long _remaining [private]


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

Generated on Sat May 26 06:43:36 2012 for Project Wonder by  doxygen 1.5.8