BoundedInputStream Class Reference
Inherits java::io::InputStream.
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
The documentation for this class was generated from the following file: