|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.io.IoAdapter
public abstract class IoAdapter
Base class for database file adapters, both for file and memory databases.
Constructor Summary | |
---|---|
IoAdapter()
|
Method Summary | |
---|---|
void |
blockCopy(int oldAddress,
int oldAddressOffset,
int newAddress,
int newAddressOffset,
int length)
copies a block within a file in block mode |
void |
blockSeek(int address)
sets the read/write pointer in the file using block mode |
void |
blockSeek(int address,
int offset)
sets the read/write pointer in the file using block mode |
int |
blockSize()
returns the block size currently used |
void |
blockSize(int blockSize)
outside call to set the block size of this adapter |
abstract void |
close()
implement to close the adapter |
void |
copy(long oldAddress,
long newAddress,
int length)
copies a block within a file in absolute mode |
IoAdapter |
delegatedIoAdapter()
Delegated IO Adapter |
abstract void |
delete(java.lang.String path)
deletes the given path from whatever 'file system' is addressed |
abstract boolean |
exists(java.lang.String path)
checks whether a file exists |
abstract long |
getLength()
implement to return the absolute length of the file |
abstract IoAdapter |
open(java.lang.String path,
boolean lockFile,
long initialLength,
boolean readOnly)
implement to open the file |
int |
read(byte[] buffer)
reads a buffer at the seeked address |
abstract int |
read(byte[] bytes,
int length)
implement to read a buffer at the seeked address |
abstract void |
seek(long pos)
implement to set the read/write pointer in the file, absolute mode |
abstract void |
sync()
implement to flush the file contents to storage |
void |
write(byte[] bytes)
writes a buffer to the seeked address |
abstract void |
write(byte[] buffer,
int length)
implement to write a buffer at the seeked address |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IoAdapter()
Method Detail |
---|
public void blockCopy(int oldAddress, int oldAddressOffset, int newAddress, int newAddressOffset, int length) throws Db4oIOException
Db4oIOException
public void blockSeek(int address) throws Db4oIOException
Db4oIOException
public void blockSeek(int address, int offset) throws Db4oIOException
Db4oIOException
public void blockSize(int blockSize)
public abstract void close() throws Db4oIOException
Db4oIOException
public void copy(long oldAddress, long newAddress, int length) throws Db4oIOException
Db4oIOException
public abstract void delete(java.lang.String path)
public abstract boolean exists(java.lang.String path)
public abstract long getLength() throws Db4oIOException
Db4oIOException
public abstract IoAdapter open(java.lang.String path, boolean lockFile, long initialLength, boolean readOnly) throws Db4oIOException
Db4oIOException
public int read(byte[] buffer) throws Db4oIOException
Db4oIOException
public abstract int read(byte[] bytes, int length) throws Db4oIOException
Db4oIOException
public abstract void seek(long pos) throws Db4oIOException
Db4oIOException
public abstract void sync() throws Db4oIOException
Db4oIOException
public void write(byte[] bytes) throws Db4oIOException
Db4oIOException
public abstract void write(byte[] buffer, int length) throws Db4oIOException
Db4oIOException
public int blockSize()
public IoAdapter delegatedIoAdapter()
|
db4o 7.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |