public class RandomAccessFileInputStream
extends java.io.InputStream
| Constructor | Description |
|---|---|
RandomAccessFileInputStream(RandomAccess raFile,
long startPosition,
long length) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
available() |
|
void |
close() |
|
int |
read() |
|
int |
read(byte[] b,
int offset,
int length) |
|
long |
skip(long amountToSkip) |
public RandomAccessFileInputStream(RandomAccess raFile, long startPosition, long length)
raFile - The file to read the data from.startPosition - The position in the file that this stream starts.length - The length of the input stream.public int available()
available in class java.io.InputStreampublic void close()
close in class java.io.InputStreampublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int offset,
int length)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic long skip(long amountToSkip)
skip in class java.io.InputStream