public abstract class IgfsInputStream extends InputStream
IGFS
input stream to read data from the file system.
It provides several additional methods for asynchronous access.Constructor and Description |
---|
IgfsInputStream() |
Modifier and Type | Method and Description |
---|---|
abstract long |
length()
Gets file length during file open.
|
abstract long |
position()
Get the current position in the input stream.
|
abstract int |
read(long pos,
byte[] buf,
int off,
int len) |
abstract void |
readFully(long pos,
byte[] buf)
Read bytes from the given position in the stream to the given buffer.
|
abstract void |
readFully(long pos,
byte[] buf,
int off,
int len) |
abstract void |
seek(long pos)
Seek to the specified position.
|
available, close, mark, markSupported, read, read, read, reset, skip
public abstract long length()
public abstract void seek(long pos) throws IOException
pos
- Position to seek to.IOException
- In case of IO exception.public abstract long position() throws IOException
IOException
- In case of IO exception.public abstract void readFully(long pos, byte[] buf) throws IOException
pos
- Position in the input stream to seek.buf
- Buffer into which data is read.IOException
- In case of IO exception.public abstract void readFully(long pos, byte[] buf, int off, int len) throws IOException
pos
- 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 IO exception.public abstract int read(long pos, byte[] buf, int off, int len) throws IOException
pos
- 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 IO exception.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.7.2 Release Date : February 6 2019