public abstract class AbstractFileIO extends Object implements FileIO
| Constructor and Description |
|---|
AbstractFileIO() |
| Modifier and Type | Method and Description |
|---|---|
int |
readFully(byte[] buf,
int off,
int len)
Reads a up to
length bytes from this file into the buffer. |
int |
readFully(ByteBuffer destBuf)
Reads a sequence of bytes from this file into the
destinationBuffer. |
int |
readFully(ByteBuffer destBuf,
long position)
Reads a sequence of bytes from this file into the
destinationBuffer
starting from specified file position. |
int |
writeFully(byte[] buf,
int off,
int len)
Writes
length bytes from the buffer
starting at offset off to this file. |
int |
writeFully(ByteBuffer srcBuf)
Writes a sequence of bytes to this file from the
sourceBuffer. |
int |
writeFully(ByteBuffer srcBuf,
long position)
Writes a sequence of bytes to this file from the
sourceBuffer
starting from specified file position |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, close, force, force, getFileSystemBlockSize, getSparseSize, map, position, position, punchHole, read, read, read, size, transferFrom, transferTo, write, write, writepublic int readFully(ByteBuffer destBuf) throws IOException
destinationBuffer.readFully in interface FileIOdestBuf - Destination byte buffer.IOException - If some I/O error occurs.public int readFully(ByteBuffer destBuf, long position) throws IOException
destinationBuffer
starting from specified file position.readFully in interface FileIOdestBuf - Destination byte buffer.position - Starting position of file.IOException - If some I/O error occurs.public int readFully(byte[] buf,
int off,
int len)
throws IOException
length bytes from this file into the buffer.readFully in interface FileIObuf - Destination byte array.off - The start offset in array b
at which the data is written.len - Number of bytes read.IOException - If some I/O error occurs.public int writeFully(ByteBuffer srcBuf) throws IOException
sourceBuffer.writeFully in interface FileIOsrcBuf - Source buffer.IOException - If some I/O error occurs.public int writeFully(ByteBuffer srcBuf, long position) throws IOException
sourceBuffer
starting from specified file positionwriteFully in interface FileIOsrcBuf - Source buffer.position - Starting file position.IOException - If some I/O error occurs.public int writeFully(byte[] buf,
int off,
int len)
throws IOException
length bytes from the buffer
starting at offset off to this file.writeFully in interface FileIObuf - Source byte array.off - Start offset in the buffer.len - Number of bytes to write.IOException - If some I/O error occurs.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.1 Release Date : December 9 2020