
public interface OFile
| Modifier and Type | Method and Description |
|---|---|
long |
allocateSpace(long iSize) |
void |
close()
Closes the file.
|
void |
create()
Creates the file.
|
void |
delete()
Deletes the file.
|
boolean |
exists() |
String |
getAbsolutePath() |
long |
getFileSize() |
String |
getName() |
String |
getPath() |
boolean |
isOpen() |
void |
open()
Opens the file.
|
void |
read(long iOffset,
byte[] iDestBuffer,
int iLenght) |
void |
read(long iOffset,
byte[] iData,
int iLength,
int iArrayOffset) |
void |
read(long offset,
ByteBuffer[] buffers,
boolean throwOnEof) |
void |
read(long offset,
ByteBuffer buffer,
boolean throwOnEof) |
byte |
readByte(long iOffset) |
int |
readInt(long iLogicalPosition) |
long |
readLong(long iOffset) |
short |
readShort(long iLogicalPosition) |
boolean |
renameTo(File newFile) |
void |
shrink(long iSize)
Shrink the file content (filledUpTo attribute only)
|
boolean |
synch() |
String |
toString() |
void |
write(long iOffset,
byte[] iSourceBuffer) |
void |
write(long iOffset,
byte[] iData,
int iSize,
int iArrayOffset) |
void |
write(long offset,
ByteBuffer buffer) |
void |
writeByte(long iOffset,
byte iValue) |
void |
writeInt(long iOffset,
int iValue) |
void |
writeLong(long iOffset,
long iValue) |
void |
writeShort(long iOffset,
short iValue) |
void open()
IOExceptionvoid create()
throws IOException
IOExceptionvoid close()
void delete()
throws IOException
IOExceptionboolean synch()
throws IOException
IOExceptionvoid read(long iOffset,
byte[] iDestBuffer,
int iLenght)
throws IOException
IOExceptionshort readShort(long iLogicalPosition)
throws IOException
IOExceptionint readInt(long iLogicalPosition)
throws IOException
IOExceptionlong readLong(long iOffset)
throws IOException
IOExceptionbyte readByte(long iOffset)
throws IOException
IOExceptionvoid writeInt(long iOffset,
int iValue)
throws IOException
IOExceptionvoid writeLong(long iOffset,
long iValue)
throws IOException
IOExceptionvoid writeShort(long iOffset,
short iValue)
throws IOException
IOExceptionvoid writeByte(long iOffset,
byte iValue)
throws IOException
IOExceptionvoid write(long iOffset,
byte[] iSourceBuffer)
throws IOException
IOExceptionvoid shrink(long iSize)
throws IOException
iSize - IOExceptionString getName()
String getPath()
String getAbsolutePath()
boolean renameTo(File newFile) throws IOException
IOExceptionlong allocateSpace(long iSize)
throws IOException
IOExceptionlong getFileSize()
boolean isOpen()
boolean exists()
void read(long iOffset,
byte[] iData,
int iLength,
int iArrayOffset)
throws IOException
IOExceptionvoid write(long iOffset,
byte[] iData,
int iSize,
int iArrayOffset)
throws IOException
IOExceptionvoid read(long offset,
ByteBuffer buffer,
boolean throwOnEof)
throws IOException
IOExceptionvoid read(long offset,
ByteBuffer[] buffers,
boolean throwOnEof)
throws IOException
IOExceptionvoid write(long offset,
ByteBuffer buffer)
throws IOException
IOExceptionCopyright © 2009–2025 OrientDB. All rights reserved.