public abstract class FileBase extends FileChannel
FileChannel.MapMode| 构造器和说明 |
|---|
FileBase() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
force(boolean metaData) |
protected void |
implCloseChannel() |
FileLock |
lock(long position,
long size,
boolean shared) |
MappedByteBuffer |
map(FileChannel.MapMode mode,
long position,
long size) |
long |
read(ByteBuffer[] dsts,
int offset,
int length) |
int |
read(ByteBuffer dst,
long position) |
long |
transferFrom(ReadableByteChannel src,
long position,
long count) |
long |
transferTo(long position,
long count,
WritableByteChannel target) |
FileLock |
tryLock(long position,
long size,
boolean shared) |
long |
write(ByteBuffer[] srcs,
int offset,
int length) |
int |
write(ByteBuffer src,
long position) |
lock, open, open, position, position, read, read, size, truncate, tryLock, write, writebegin, close, end, isOpenpublic int read(ByteBuffer dst, long position) throws IOException
read 在类中 FileChannelIOExceptionpublic int write(ByteBuffer src, long position) throws IOException
write 在类中 FileChannelIOExceptionpublic void force(boolean metaData)
throws IOException
force 在类中 FileChannelIOExceptionprotected void implCloseChannel()
throws IOException
implCloseChannel 在类中 AbstractInterruptibleChannelIOExceptionpublic FileLock lock(long position, long size, boolean shared) throws IOException
lock 在类中 FileChannelIOExceptionpublic MappedByteBuffer map(FileChannel.MapMode mode, long position, long size) throws IOException
map 在类中 FileChannelIOExceptionpublic long read(ByteBuffer[] dsts, int offset, int length) throws IOException
read 在接口中 ScatteringByteChannelread 在类中 FileChannelIOExceptionpublic long transferFrom(ReadableByteChannel src, long position, long count) throws IOException
transferFrom 在类中 FileChannelIOExceptionpublic long transferTo(long position,
long count,
WritableByteChannel target)
throws IOException
transferTo 在类中 FileChannelIOExceptionpublic FileLock tryLock(long position, long size, boolean shared) throws IOException
tryLock 在类中 FileChannelIOExceptionpublic long write(ByteBuffer[] srcs, int offset, int length) throws IOException
write 在接口中 GatheringByteChannelwrite 在类中 FileChannelIOExceptionCopyright © 2022. All rights reserved.