类的用途
java.nio.channels.AsynchronousFileChannel
使用 AsynchronousFileChannel 的包
-
AsynchronousFileChannel 在 java.nio.channels 中的用法
修饰符和类型方法描述static AsynchronousFileChannelAsynchronousFileChannel.open(Path file, OpenOption... options) 打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。static AsynchronousFileChannelAsynchronousFileChannel.open(Path file, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) 打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。abstract AsynchronousFileChannelAsynchronousFileChannel.truncate(long size) 将此通道的文件截断为给定大小。java.nio.channels 中的构造函数,参数类型为 AsynchronousFileChannel修饰符构造方法描述protectedFileLock(AsynchronousFileChannel channel, long position, long size, boolean shared) 初始化此类的新实例。 -
AsynchronousFileChannel 在 java.nio.file.spi 中的用法
修饰符和类型方法描述FileSystemProvider.newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs) 打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。