| java.lang.Object org.hsqldb.persist.ScaledRAFile
ScaledRAFile | class ScaledRAFile implements ScaledRAInterface(Code) | | This class is a wapper for a random access file such as that used for
CACHED table storage.
author: fredt@users version: 1.8.0 since: 1.7.2 |
Method Summary | |
public boolean | canAccess(int length) | public boolean | canSeek(long position) | public void | close() | public Database | getDatabase() | public long | getFilePointer() | public boolean | isReadOnly() | public long | length() | static Storage | newScaledRAFile(Database database, String name, boolean readonly, int type, String classname, String key) | public int | read() | public void | read(byte[] b, int offset, int length) | public int | readInt() | public long | readLong() | public void | seek(long position) Some JVM's do not allow seek beyond end of file, so zeros are written
first in that case. | public boolean | wasNio() | public void | write(byte[] b, int off, int len) | public void | writeInt(int i) | public void | writeLong(long i) |
DATA_FILE_JAR | final static int DATA_FILE_JAR(Code) | | |
DATA_FILE_NIO | final static int DATA_FILE_NIO(Code) | | |
DATA_FILE_RAF | final static int DATA_FILE_RAF(Code) | | |
MAX_NIO_LENGTH | final static long MAX_NIO_LENGTH(Code) | | |
buffer | final byte[] buffer(Code) | | |
bufferDirty | boolean bufferDirty(Code) | | |
bufferOffset | long bufferOffset(Code) | | |
cacheHit | static int cacheHit(Code) | | |
realPosition | long realPosition(Code) | | |
seekPosition | long seekPosition(Code) | | |
canAccess | public boolean canAccess(int length)(Code) | | |
canSeek | public boolean canSeek(long position)(Code) | | |
isReadOnly | public boolean isReadOnly()(Code) | | |
seek | public void seek(long position) throws IOException(Code) | | Some JVM's do not allow seek beyond end of file, so zeros are written
first in that case. Reported by bohgammer@users in Open Disucssion
Forum.
|
wasNio | public boolean wasNio()(Code) | | |
|
|