public abstract class IoAdapter
extends java.lang.Object
| Constructor and Description |
|---|
IoAdapter()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
blockCopy(int oldAddress,
int oldAddressOffset,
int newAddress,
int newAddressOffset,
int length)
Deprecated.
copies a block within a file in block mode
|
void |
blockSeek(int address)
Deprecated.
sets the read/write pointer in the file using block mode
|
void |
blockSeek(int address,
int offset)
Deprecated.
sets the read/write pointer in the file using block mode
|
int |
blockSize()
Deprecated.
returns the block size currently used
|
void |
blockSize(int blockSize)
Deprecated.
outside call to set the block size of this adapter
|
abstract void |
close()
Deprecated.
implement to close the adapter
|
void |
copy(long oldAddress,
long newAddress,
int length)
Deprecated.
copies a block within a file in absolute mode
|
IoAdapter |
delegatedIoAdapter()
Deprecated.
Delegated IO Adapter
|
abstract void |
delete(java.lang.String path)
Deprecated.
deletes the given path from whatever 'file system' is addressed
|
abstract boolean |
exists(java.lang.String path)
Deprecated.
checks whether a file exists
|
abstract long |
getLength()
Deprecated.
implement to return the absolute length of the file
|
abstract IoAdapter |
open(java.lang.String path,
boolean lockFile,
long initialLength,
boolean readOnly)
Deprecated.
implement to open the file
|
int |
read(byte[] buffer)
Deprecated.
reads a buffer at the seeked address
|
abstract int |
read(byte[] bytes,
int length)
Deprecated.
implement to read a buffer at the seeked address
|
protected long |
regularAddress(int blockAddress,
int blockAddressOffset)
Deprecated.
converts address and address offset to an absolute address
|
abstract void |
seek(long pos)
Deprecated.
implement to set the read/write pointer in the file, absolute mode
|
abstract void |
sync()
Deprecated.
implement to flush the file contents to storage
|
void |
write(byte[] bytes)
Deprecated.
writes a buffer to the seeked address
|
abstract void |
write(byte[] buffer,
int length)
Deprecated.
implement to write a buffer at the seeked address
|
protected final long regularAddress(int blockAddress,
int blockAddressOffset)
public void blockCopy(int oldAddress,
int oldAddressOffset,
int newAddress,
int newAddressOffset,
int length)
throws Db4oIOException
Db4oIOExceptionpublic void blockSeek(int address)
throws Db4oIOException
Db4oIOExceptionpublic void blockSeek(int address,
int offset)
throws Db4oIOException
Db4oIOExceptionpublic void blockSize(int blockSize)
public abstract void close()
throws Db4oIOException
Db4oIOExceptionpublic void copy(long oldAddress,
long newAddress,
int length)
throws Db4oIOException
Db4oIOExceptionpublic abstract void delete(java.lang.String path)
public abstract boolean exists(java.lang.String path)
public abstract long getLength()
throws Db4oIOException
Db4oIOExceptionpublic abstract IoAdapter open(java.lang.String path, boolean lockFile, long initialLength, boolean readOnly) throws Db4oIOException
Db4oIOExceptionpublic int read(byte[] buffer)
throws Db4oIOException
Db4oIOExceptionpublic abstract int read(byte[] bytes,
int length)
throws Db4oIOException
Db4oIOExceptionpublic abstract void seek(long pos)
throws Db4oIOException
Db4oIOExceptionpublic abstract void sync()
throws Db4oIOException
Db4oIOExceptionpublic void write(byte[] bytes)
throws Db4oIOException
Db4oIOExceptionpublic abstract void write(byte[] buffer,
int length)
throws Db4oIOException
Db4oIOExceptionpublic int blockSize()
public IoAdapter delegatedIoAdapter()