| java.lang.Object com.quadcap.sql.file.RandomAccess com.quadcap.sql.file.BufferedRandomAccess
BufferedRandomAccess | public class BufferedRandomAccess extends RandomAccess (Code) | | A RandomAccess implementation using a byte array.
author: Stan Bailes |
Inner Class :class Buffer | |
Method Summary | |
public void | close() Finalization... | public void | flush() | final void | flush(Buffer b) | final void | flushBuffers() | final void | getBuffer(long addr) | public void | read(long pos, byte[] buf, int offset, int len) Read len bytes from location pos of the region
into the buffer buf, starting at offset. | public void | resize(long newSize) Resize the managed region. | public long | size() Return the size of the managed region. | public void | write(long pos, byte[] buf, int offset, int len) |
BUFSIZE | final static int BUFSIZE(Code) | | |
read | public void read(long pos, byte[] buf, int offset, int len) throws IOException(Code) | | Read len bytes from location pos of the region
into the buffer buf, starting at offset.
|
resize | public void resize(long newSize) throws IOException(Code) | | Resize the managed region.
|
size | public long size()(Code) | | Return the size of the managed region.
|
write | public void write(long pos, byte[] buf, int offset, int len) throws IOException(Code) | | |
Fields inherited from com.quadcap.sql.file.RandomAccess | byte[] fmtBuf(Code)(Java Doc)
|
|
|