| java.lang.Object com.quadcap.sql.file.RandomAccess
All known Subclasses: com.quadcap.sql.file.BlockAccess, com.quadcap.sql.file.FileRandomAccess, com.quadcap.sql.file.ByteArrayRandomAccess, com.quadcap.sql.file.BufferedRandomAccess,
RandomAccess | abstract public class RandomAccess (Code) | | This interface is used to access a region of consecutive bytes in a
random access manner.
author: Stan Bailes |
Method Summary | |
abstract public void | close() Finalization... | abstract public void | flush() | abstract 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 int | readByte(int pos) | public int | readInt(long pos) | public long | readLong(long pos) | abstract public void | resize(long newSize) Resize the managed region. | abstract public long | size() Return the size of the managed region. | abstract public void | write(long pos, byte[] buf, int offset, int len) | public void | writeByte(int pos, int val) | public void | writeInt(long pos, int val) | public void | writeLong(long pos, long val) |
read | abstract 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.
|
readInt | public int readInt(long pos) throws IOException(Code) | | Write a integer value to the specified position in the buffer
|
readLong | public long readLong(long pos) throws IOException(Code) | | Write a long value to the specified position in the buffer
|
resize | abstract public void resize(long newSize) throws IOException(Code) | | Resize the managed region.
|
size | abstract public long size()(Code) | | Return the size of the managed region.
|
write | abstract public void write(long pos, byte[] buf, int offset, int len) throws IOException(Code) | | |
writeInt | public void writeInt(long pos, int val) throws IOException(Code) | | Write a integer value to the specified position in the buffer
|
writeLong | public void writeLong(long pos, long val) throws IOException(Code) | | Write a long value to the specified position in the buffer
|
|
|