public class RandomAccessFileInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
RandomAccessFileInputStream(RandomAccess raFile,
long startPosition,
long length)
Constructor.
|
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 interface java.io.Closeableclose in interface java.lang.AutoCloseableclose 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