java.io.Closeable
, java.lang.AutoCloseable
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.InputStream
public void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in class java.io.InputStream
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int offset, int length) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long amountToSkip)
skip
in class java.io.InputStream