public class BlockAwareBin extends BinDecorator
_bin| Constructor and Description |
|---|
BlockAwareBin(Bin bin) |
| Modifier and Type | Method and Description |
|---|---|
void |
blockCopy(int oldAddress,
int oldAddressOffset,
int newAddress,
int newAddressOffset,
int length)
copies a block within a file in block mode
|
int |
blockRead(int address,
byte[] buffer)
reads a buffer at the seeked address
|
int |
blockRead(int address,
byte[] bytes,
int length)
implement to read a buffer at the seeked address
|
int |
blockRead(int address,
int offset,
byte[] buffer)
reads a buffer at the seeked address
|
int |
blockRead(int address,
int offset,
byte[] bytes,
int length)
implement to read a buffer at the seeked address
|
int |
blockSize()
returns the block size currently used
|
void |
blockSize(int blockSize)
outside call to set the block size of this adapter
|
void |
blockWrite(int address,
byte[] buffer)
reads a buffer at the seeked address
|
void |
blockWrite(int address,
byte[] bytes,
int length)
implement to read a buffer at the seeked address
|
void |
blockWrite(int address,
int offset,
byte[] buffer)
reads a buffer at the seeked address
|
void |
blockWrite(int address,
int offset,
byte[] bytes,
int length)
implement to read a buffer at the seeked address
|
void |
copy(long oldAddress,
long newAddress,
int length)
copies a block within a file in absolute mode
|
int |
read(long pos,
byte[] buffer)
reads a buffer at the seeked address
|
protected long |
regularAddress(int blockAddress,
int blockAddressOffset)
converts address and address offset to an absolute address
|
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();
|
void |
write(long pos,
byte[] bytes)
writes a buffer to the seeked address
|
public BlockAwareBin(Bin bin)
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 copy(long oldAddress,
long newAddress,
int length)
throws Db4oIOException
Db4oIOExceptionpublic int blockRead(int address,
int offset,
byte[] buffer)
throws Db4oIOException
Db4oIOExceptionpublic int blockRead(int address,
int offset,
byte[] bytes,
int length)
throws Db4oIOException
Db4oIOExceptionpublic int blockRead(int address,
byte[] buffer)
throws Db4oIOException
Db4oIOExceptionpublic int blockRead(int address,
byte[] bytes,
int length)
throws Db4oIOException
Db4oIOExceptionpublic int read(long pos,
byte[] buffer)
throws Db4oIOException
Db4oIOExceptionpublic void blockWrite(int address,
int offset,
byte[] buffer)
throws Db4oIOException
Db4oIOExceptionpublic void blockWrite(int address,
int offset,
byte[] bytes,
int length)
throws Db4oIOException
Db4oIOExceptionpublic void blockWrite(int address,
byte[] buffer)
throws Db4oIOException
Db4oIOExceptionpublic void blockWrite(int address,
byte[] bytes,
int length)
throws Db4oIOException
Db4oIOExceptionpublic void sync()
Binsync in interface Binsync in class BinDecoratorBin.sync()public void sync(java.lang.Runnable runnable)
Binsync in interface Binsync in class BinDecoratorpublic void write(long pos,
byte[] bytes)
throws Db4oIOException
Db4oIOExceptionpublic int blockSize()
public void blockSize(int blockSize)