| java.lang.Object com.quadcap.sql.file.RandomAccess com.quadcap.sql.file.ByteArrayRandomAccess
ByteArrayRandomAccess | public class ByteArrayRandomAccess extends RandomAccess (Code) | | A RandomAccess implementation using a byte array.
author: Stan Bailes |
Method Summary | |
public void | close() Finalization... | public void | flush() | public byte[] | getBytes() | public void | read(long pos, byte[] b, int offset, int len) Read len bytes from location pos of the region
into the buffer buf, starting at offset. | final public int | readByte(int pos) | public void | reset(byte[] buf, int size) | public void | resize(long newSize) Resize the managed region. | final void | setCapacity(long cap) | public long | size() Return the size of the managed region. | public byte[] | toByteArray() | public void | write(long pos, byte[] b, int offset, int len) | final public void | writeByte(int pos, int val) |
trace | final static boolean trace(Code) | | |
ByteArrayRandomAccess | public ByteArrayRandomAccess()(Code) | | |
ByteArrayRandomAccess | public ByteArrayRandomAccess(int initialCap)(Code) | | |
ByteArrayRandomAccess | public ByteArrayRandomAccess(byte[] buf)(Code) | | |
close | public void close()(Code) | | Finalization...
|
flush | public void flush()(Code) | | |
getBytes | public byte[] getBytes()(Code) | | |
read | public void read(long pos, byte[] b, int offset, int len)(Code) | | Read len bytes from location pos of the region
into the buffer buf, starting at offset.
|
readByte | final public int readByte(int pos)(Code) | | |
reset | public void reset(byte[] buf, int size)(Code) | | |
resize | public void resize(long newSize)(Code) | | Resize the managed region.
|
setCapacity | final void setCapacity(long cap)(Code) | | |
size | public long size()(Code) | | Return the size of the managed region.
|
toByteArray | public byte[] toByteArray()(Code) | | |
write | public void write(long pos, byte[] b, int offset, int len)(Code) | | |
writeByte | final public void writeByte(int pos, int val)(Code) | | |
Fields inherited from com.quadcap.sql.file.RandomAccess | byte[] fmtBuf(Code)(Java Doc)
|
|
|