public class IgfsLazySecondaryFileSystemPositionedReadable extends Object implements IgfsSecondaryFileSystemPositionedReadable
| Constructor and Description |
|---|
IgfsLazySecondaryFileSystemPositionedReadable(IgfsSecondaryFileSystem fs,
IgfsPath path,
int bufSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read(long pos,
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.
|
String |
toString() |
public IgfsLazySecondaryFileSystemPositionedReadable(IgfsSecondaryFileSystem fs, IgfsPath path, int bufSize)
fs - File system.path - Path.bufSize - Buffer size.public int read(long pos,
byte[] buf,
int off,
int len)
throws IOException
read in interface IgfsSecondaryFileSystemPositionedReadablepos - 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.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.1 Release Date : May 21 2020