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
position in interface java.nio.channels.SeekableByteChannelposition in class java.nio.channels.FileChanneljava.io.IOExceptionpublic long position()
throws java.io.IOException
position in interface java.nio.channels.SeekableByteChannelposition in class java.nio.channels.FileChanneljava.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 java.nio.channels.FileChanneljava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst,
long position)
throws java.io.IOException
public long size()
throws java.io.IOException
size in interface java.nio.channels.SeekableByteChannelsize in class java.nio.channels.FileChanneljava.io.IOExceptionpublic java.nio.channels.FileChannel truncate(long newSize)
throws java.io.IOException
truncate in interface java.nio.channels.SeekableByteChanneltruncate in class java.nio.channels.FileChanneljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src,
long position)
throws java.io.IOException
public 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 java.nio.channels.FileChanneljava.io.IOExceptionpublic 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