StorageDecorator / BinDecorator instead.public abstract class VanillaIoAdapter extends IoAdapter
| Modifier and Type | Field and Description |
|---|---|
protected IoAdapter |
_delegate
Deprecated.
|
| Modifier | Constructor and Description |
|---|---|
|
VanillaIoAdapter(IoAdapter delegateAdapter)
Deprecated.
|
protected |
VanillaIoAdapter(IoAdapter delegateAdapter,
java.lang.String path,
boolean lockFile,
long initialLength,
boolean readOnly)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Deprecated.
implement to close the adapter
|
void |
delete(java.lang.String path)
Deprecated.
deletes the given path from whatever 'file system' is addressed
|
boolean |
exists(java.lang.String path)
Deprecated.
checks whether a file exists
|
long |
getLength()
Deprecated.
implement to return the absolute length of the file
|
int |
read(byte[] bytes,
int length)
Deprecated.
implement to read a buffer at the seeked address
|
void |
seek(long pos)
Deprecated.
implement to set the read/write pointer in the file, absolute mode
|
void |
sync()
Deprecated.
implement to flush the file contents to storage
|
void |
write(byte[] buffer,
int length)
Deprecated.
implement to write a buffer at the seeked address
|
protected IoAdapter _delegate
public VanillaIoAdapter(IoAdapter delegateAdapter)
protected VanillaIoAdapter(IoAdapter delegateAdapter, java.lang.String path, boolean lockFile, long initialLength, boolean readOnly) throws Db4oIOException
Db4oIOExceptionpublic void close()
throws Db4oIOException
IoAdapterclose in class IoAdapterDb4oIOExceptionpublic void delete(java.lang.String path)
IoAdapterpublic boolean exists(java.lang.String path)
IoAdapterpublic long getLength()
throws Db4oIOException
IoAdaptergetLength in class IoAdapterDb4oIOExceptionpublic int read(byte[] bytes,
int length)
throws Db4oIOException
IoAdapterread in class IoAdapterDb4oIOExceptionpublic void seek(long pos)
throws Db4oIOException
IoAdapterseek in class IoAdapterDb4oIOExceptionpublic void sync()
throws Db4oIOException
IoAdaptersync in class IoAdapterDb4oIOExceptionpublic void write(byte[] buffer,
int length)
throws Db4oIOException
IoAdapterwrite in class IoAdapterDb4oIOException