Uses of Class
java.nio.channels.AsynchronousFileChannel
-
Packages that use AsynchronousFileChannel 软件包 描述 java.nio.channels 定义通道,其表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。java.nio.file.spi java.nio.file
包的服务提供者类。 -
-
Uses of AsynchronousFileChannel in java.nio.channels
Methods in java.nio.channels that return AsynchronousFileChannel Modifier and Type 方法 描述 static AsynchronousFileChannel
AsynchronousFileChannel. open(Path file, OpenOption... options)
打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。static AsynchronousFileChannel
AsynchronousFileChannel. open(Path file, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)
打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。abstract AsynchronousFileChannel
AsynchronousFileChannel. truncate(long size)
将此频道的文件截断为给定大小。Constructors in java.nio.channels with parameters of type AsynchronousFileChannel Constructor 描述 FileLock(AsynchronousFileChannel channel, long position, long size, boolean shared)
初始化此类的新实例。 -
Uses of AsynchronousFileChannel in java.nio.file.spi
Methods in java.nio.file.spi that return AsynchronousFileChannel Modifier and Type 方法 描述 AsynchronousFileChannel
FileSystemProvider. newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)
Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.
-