|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Interface of file. Programmer can provide its own impleentation of this interface, adding such features as support of flash cards, encrypted files,... Implentation of this interface should throw StorageError exception in case of failure
| Method Summary | |
|---|---|
void |
close()
Close file |
long |
length()
Length of the file |
boolean |
lock()
Lock file |
int |
read(long pos,
byte[] buf)
Reade data from the file |
void |
sync()
Flush all fiels changes to the disk |
void |
write(long pos,
byte[] buf)
Write data to the file |
| Method Detail |
|---|
void close()
long length()
boolean lock()
true if file was successfully locked or locking in not implemented,
false if file is locked by some other applciation
int read(long pos,
byte[] buf)
pos - offset in the filebuf - array to receive readen data (size is always equal to database page size)
void sync()
void write(long pos,
byte[] buf)
pos - offset in the filebuf - array with data to be writter (size is always equal to database page size)
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||