类的用途
java.nio.channels.FileChannel.MapMode
使用 FileChannel.MapMode 的包
-
FileChannel.MapMode 在 java.nio.channels 中的用法
java.nio.channels 中的字段声明为 FileChannel.MapMode修饰符和类型Field描述static final FileChannel.MapModeFileChannel.MapMode.PRIVATE私有(写时复制)映射的模式。static final FileChannel.MapModeFileChannel.MapMode.READ_ONLY只读映射的模式。static final FileChannel.MapModeFileChannel.MapMode.READ_WRITE读/写映射的模式。java.nio.channels 中的方法,参数类型为 FileChannel.MapMode修饰符和类型方法描述abstract MappedByteBufferFileChannel.map(FileChannel.MapMode mode, long position, long size) 将此通道文件的一个区域直接映射到内存中。FileChannel.map(FileChannel.MapMode mode, long offset, long size, SegmentScopePREVIEW session) 预览。将此通道文件的一个区域映射到一个新的映射内存段,具有给定的偏移量、大小和内存会话。 -
FileChannel.MapMode 在 jdk.nio.mapmode 中的用法
jdk.nio.mapmode 中的字段声明为 FileChannel.MapMode修饰符和类型Field描述static final FileChannel.MapModeExtendedMapMode.READ_ONLY_SYNC由非易失性 RAM 支持的文件的只读映射的文件映射模式。static final FileChannel.MapModeExtendedMapMode.READ_WRITE_SYNC由非易失性 RAM 支持的文件读写映射的文件映射模式。