Interface OFile
- All Superinterfaces:
OClosableItem
- All Known Implementing Classes:
AsyncFile
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlongallocateSpace(int size) voidclose()voidcreate()voiddelete()booleanexists()longgetName()booleanisOpen()voidopen()voidread(long offset, ByteBuffer buffer, boolean throwOnEof) voidvoidreplaceContentWith(Path newContentFile) voidshrink(long size) voidsynch()toString()voidwrite(long offset, ByteBuffer buffer) write(List<ORawPair<Long, ByteBuffer>> buffers)
-
Field Details
-
HEADER_SIZE
static final int HEADER_SIZE- See Also:
-
-
Method Details
-
allocateSpace
- Throws:
IOException
-
shrink
- Throws:
IOException
-
getFileSize
long getFileSize() -
read
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
synch
void synch() -
create
- Throws:
IOException
-
open
void open()- Specified by:
openin interfaceOClosableItem
-
close
void close()- Specified by:
closein interfaceOClosableItem
-
delete
- Throws:
IOExceptionInterruptedException
-
isOpen
boolean isOpen()- Specified by:
isOpenin interfaceOClosableItem
-
exists
boolean exists() -
getName
String getName() -
renameTo
- Throws:
IOExceptionInterruptedException
-
replaceContentWith
- Throws:
IOExceptionInterruptedException
-
toString
String toString()
-