public static class FilePathCache.FileCache extends FileBase
FileChannel.MapMode| 限定符和类型 | 方法和说明 |
|---|---|
void |
force(boolean metaData) |
protected void |
implCloseChannel() |
long |
position() |
FileChannel |
position(long newPosition) |
int |
read(ByteBuffer dst) |
int |
read(ByteBuffer dst,
long position) |
long |
size() |
String |
toString() |
FileChannel |
truncate(long newSize) |
FileLock |
tryLock(long position,
long size,
boolean shared) |
int |
write(ByteBuffer src) |
int |
write(ByteBuffer src,
long position) |
lock, map, read, transferFrom, transferTo, writebegin, close, end, isOpenprotected void implCloseChannel()
throws IOException
implCloseChannel 在类中 FileBaseIOExceptionpublic FileChannel position(long newPosition) throws IOException
position 在接口中 SeekableByteChannelposition 在类中 FileBaseIOExceptionpublic long position()
throws IOException
position 在接口中 SeekableByteChannelposition 在类中 FileBaseIOExceptionpublic int read(ByteBuffer dst) throws IOException
read 在接口中 ReadableByteChannelread 在接口中 SeekableByteChannelread 在类中 FileBaseIOExceptionpublic int read(ByteBuffer dst, long position) throws IOException
read 在类中 FileBaseIOExceptionpublic long size()
throws IOException
size 在接口中 SeekableByteChannelsize 在类中 FileBaseIOExceptionpublic FileChannel truncate(long newSize) throws IOException
truncate 在接口中 SeekableByteChanneltruncate 在类中 FileBaseIOExceptionpublic int write(ByteBuffer src, long position) throws IOException
write 在类中 FileBaseIOExceptionpublic int write(ByteBuffer src) throws IOException
write 在接口中 SeekableByteChannelwrite 在接口中 WritableByteChannelwrite 在类中 FileBaseIOExceptionpublic void force(boolean metaData)
throws IOException
force 在类中 FileBaseIOExceptionpublic FileLock tryLock(long position, long size, boolean shared) throws IOException
tryLock 在类中 FileBaseIOExceptionCopyright © 2017. All rights reserved.