public static class FilePathCache.FileCache extends 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 FileBasejava.io.IOExceptionpublic java.nio.channels.FileChannel position(long newPosition)
throws java.io.IOException
public long position()
throws java.io.IOException
public int read(java.nio.ByteBuffer dst)
throws java.io.IOException
public int read(java.nio.ByteBuffer dst,
long position)
throws java.io.IOException
public long size()
throws java.io.IOException
public java.nio.channels.FileChannel truncate(long newSize)
throws java.io.IOException
public int write(java.nio.ByteBuffer src,
long position)
throws java.io.IOException
public int write(java.nio.ByteBuffer src)
throws java.io.IOException
public void force(boolean metaData)
throws java.io.IOException
public java.nio.channels.FileLock tryLock(long position,
long size,
boolean shared)
throws java.io.IOException
public java.lang.String toString()
toString in class java.lang.Object