|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.io.FileStorage.FileBin
public static class FileStorage.FileBin
Constructor Summary | |
---|---|
FileStorage.FileBin(com.db4o.io.BinConfiguration config)
|
Method Summary | |
---|---|
void |
close()
closes the Bin. |
long |
length()
returns the length of the Bin (on disc, in memory). |
int |
read(long pos,
byte[] bytes,
int length)
reads a given number of bytes into an array of bytes at an offset position. |
void |
sync()
flushes the buffer content to the physical storage media. |
void |
sync(java.lang.Runnable runnable)
runs the Runnable between two calls to sync(); |
int |
syncRead(long position,
byte[] bytes,
int bytesToRead)
reads a given number of bytes into an array of bytes at an offset position. |
void |
write(long pos,
byte[] buffer,
int length)
writes a given number of bytes from an array of bytes at an offset position |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileStorage.FileBin(com.db4o.io.BinConfiguration config) throws Db4oIOException
Db4oIOException
Method Detail |
---|
public void close() throws Db4oIOException
Bin
close
in interface Bin
Db4oIOException
public long length() throws Db4oIOException
Bin
length
in interface Bin
Db4oIOException
public int read(long pos, byte[] bytes, int length) throws Db4oIOException
Bin
read
in interface Bin
pos
- the offset position to read atbytes
- the byte array to read bytes intolength
- the number of bytes to be read
Db4oIOException
public void sync() throws Db4oIOException
Bin
sync
in interface Bin
Db4oIOException
public int syncRead(long position, byte[] bytes, int bytesToRead)
Bin
Bin.read(long, byte[], int)
method, the Bin should ensure direct access to the raw storage medium.
No caching should take place.
syncRead
in interface Bin
position
- the offset position to read atbytes
- the byte array to read bytes intobytesToRead
- the number of bytes to be read
public void write(long pos, byte[] buffer, int length) throws Db4oIOException
Bin
write
in interface Bin
pos
- the offset position to write atbuffer
- the array of bytes to writelength
- the number of bytes to write
Db4oIOException
public void sync(java.lang.Runnable runnable)
Bin
sync
in interface Bin
|
db4o 8.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |