public class LocalFileSystemPositionedReadable extends BufferedInputStream implements IgfsSecondaryFileSystemPositionedReadable
in| Constructor and Description |
|---|
LocalFileSystemPositionedReadable(FileInputStream in,
int bufSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read(long readPos,
byte[] buf,
int off,
int len)
Read up to the specified number of bytes, from a given position within a file, and return the number of bytes
read.
|
available, close, mark, markSupported, read, read, reset, skipreadpublic LocalFileSystemPositionedReadable(FileInputStream in, int bufSize)
in - Input stream.bufSize - Buffer size.public int read(long readPos,
byte[] buf,
int off,
int len)
throws IOException
read in interface IgfsSecondaryFileSystemPositionedReadablereadPos - Position in the input stream to seek.buf - Buffer into which data is read.off - Offset in the buffer from which stream data should be written.len - The number of bytes to read.IOException - In case of any exception.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.2.0 Release Date : September 15 2017