public class RandomAccessFileInputStream extends InputStream
Constructor and Description |
---|
RandomAccessFileInputStream(RandomAccess raFile,
long startPosition,
long length)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b,
int offset,
int length) |
long |
skip(long amountToSkip) |
mark, markSupported, read, reset
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 InputStream
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int offset, int length) throws IOException
read
in class InputStream
IOException
public long skip(long amountToSkip)
skip
in class InputStream
Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.