public interface FuseFileStream
extends java.lang.AutoCloseable
| Modifier and Type | Interface and Description |
|---|---|
static class |
FuseFileStream.Factory
Factory for
FuseFileInStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream.
|
void |
flush()
Flushes the stream.
|
long |
getFileLength()
Gets the file length.
|
int |
read(java.nio.ByteBuffer buf,
long size,
long offset)
Reads data from the stream.
|
void |
truncate(long size)
Truncates the file to the given size.
|
void |
write(java.nio.ByteBuffer buf,
long size,
long offset)
Writes data to the stream.
|
int read(java.nio.ByteBuffer buf,
long size,
long offset)
buf - the byte buffer to read data tosize - the size to readoffset - the offset of the target stream to begin readingvoid write(java.nio.ByteBuffer buf,
long size,
long offset)
buf - the byte buffer to read data from and write to the streamsize - the size to writeoffset - the offset to writelong getFileLength()
void flush()
void truncate(long size)
size - the truncate sizevoid close()
close in interface java.lang.AutoCloseableCopyright © 2023. All Rights Reserved.