public static class FilePathCache.FileCache
extends org.h2.store.fs.FileBase
| Modifier and Type | Method and Description |
|---|---|
void |
force(boolean metaData) |
protected void |
implCloseChannel() |
long |
position() |
java.nio.channels.FileChannel |
position(long newPosition) |
int |
read(java.nio.ByteBuffer dst) |
int |
read(java.nio.ByteBuffer dst,
long position) |
long |
size() |
java.lang.String |
toString() |
java.nio.channels.FileChannel |
truncate(long newSize) |
java.nio.channels.FileLock |
tryLock(long position,
long size,
boolean shared) |
int |
write(java.nio.ByteBuffer src) |
int |
write(java.nio.ByteBuffer src,
long position) |
lock, map, read, transferFrom, transferTo, writebegin, close, end, isOpenprotected void implCloseChannel()
throws java.io.IOException
implCloseChannel in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic java.nio.channels.FileChannel position(long newPosition)
throws java.io.IOException
position in interface java.nio.channels.SeekableByteChannelposition in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic long position()
throws java.io.IOException
position in interface java.nio.channels.SeekableByteChannelposition in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChannelread in interface java.nio.channels.SeekableByteChannelread in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst,
long position)
throws java.io.IOException
read in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic long size()
throws java.io.IOException
size in interface java.nio.channels.SeekableByteChannelsize in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic java.nio.channels.FileChannel truncate(long newSize)
throws java.io.IOException
truncate in interface java.nio.channels.SeekableByteChanneltruncate in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic int write(java.nio.ByteBuffer src,
long position)
throws java.io.IOException
write in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.SeekableByteChannelwrite in interface java.nio.channels.WritableByteChannelwrite in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic void force(boolean metaData)
throws java.io.IOException
force in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic java.nio.channels.FileLock tryLock(long position,
long size,
boolean shared)
throws java.io.IOException
tryLock in class org.h2.store.fs.FileBasejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object