|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.db4o.io.IoAdapter
com.db4o.io.VanillaIoAdapter
public abstract class VanillaIoAdapter
base class for IoAdapters that delegate to other IoAdapters (decorator pattern)
Constructor Summary | |
---|---|
VanillaIoAdapter(IoAdapter delegateAdapter)
|
Method Summary | |
---|---|
void |
close()
implement to close the adapter |
void |
delete(java.lang.String path)
deletes the given path from whatever 'file system' is addressed |
boolean |
exists(java.lang.String path)
checks whether a file exists |
long |
getLength()
implement to return the absolute length of the file |
int |
read(byte[] bytes,
int length)
implement to read a buffer at the seeked address |
void |
seek(long pos)
implement to set the read/write pointer in the file, absolute mode |
void |
sync()
implement to flush the file contents to storage |
void |
write(byte[] buffer,
int length)
implement to write a buffer at the seeked address |
Methods inherited from class com.db4o.io.IoAdapter |
---|
blockCopy, blockSeek, blockSeek, blockSize, blockSize, copy, delegatedIoAdapter, open, read, write |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VanillaIoAdapter(IoAdapter delegateAdapter)
Method Detail |
---|
public void close() throws java.io.IOException
IoAdapter
close
in class IoAdapter
java.io.IOException
public void delete(java.lang.String path)
IoAdapter
delete
in class IoAdapter
public boolean exists(java.lang.String path)
IoAdapter
exists
in class IoAdapter
public long getLength() throws java.io.IOException
IoAdapter
getLength
in class IoAdapter
java.io.IOException
public int read(byte[] bytes, int length) throws java.io.IOException
IoAdapter
read
in class IoAdapter
java.io.IOException
public void seek(long pos) throws java.io.IOException
IoAdapter
seek
in class IoAdapter
java.io.IOException
public void sync() throws java.io.IOException
IoAdapter
sync
in class IoAdapter
java.io.IOException
public void write(byte[] buffer, int length) throws java.io.IOException
IoAdapter
write
in class IoAdapter
java.io.IOException
|
db4o 6.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |