
public interface OFile extends OClosableItem
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_SIZE |
| Modifier and Type | Method and Description |
|---|---|
long |
allocateSpace(int size) |
void |
close() |
void |
create() |
void |
delete() |
boolean |
exists() |
long |
getFileSize() |
String |
getName() |
boolean |
isOpen() |
void |
open() |
void |
read(long offset,
ByteBuffer buffer,
boolean throwOnEof) |
void |
renameTo(Path newFile) |
void |
replaceContentWith(Path newContentFile) |
void |
shrink(long size) |
void |
synch() |
String |
toString() |
IOResult |
write(List<ORawPair<Long,ByteBuffer>> buffers) |
void |
write(long offset,
ByteBuffer buffer) |
static final int HEADER_SIZE
long allocateSpace(int size)
throws IOException
IOExceptionvoid shrink(long size)
throws IOException
IOExceptionlong getFileSize()
void read(long offset,
ByteBuffer buffer,
boolean throwOnEof)
throws IOException
IOExceptionvoid write(long offset,
ByteBuffer buffer)
throws IOException
IOExceptionIOResult write(List<ORawPair<Long,ByteBuffer>> buffers) throws IOException
IOExceptionvoid synch()
void create()
throws IOException
IOExceptionvoid open()
open in interface OClosableItemvoid close()
close in interface OClosableItemvoid delete()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionboolean isOpen()
isOpen in interface OClosableItemboolean exists()
String getName()
void renameTo(Path newFile) throws IOException, InterruptedException
IOExceptionInterruptedExceptionvoid replaceContentWith(Path newContentFile) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2009–2025 OrientDB. All rights reserved.