Uses of Interface
java.nio.file.OpenOption
-
Packages that use OpenOption 软件包 描述 java.net.http HTTP客户端和WebSocket APIjava.nio.channels 定义通道,表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。java.nio.file 定义Java虚拟机的接口和类,以访问文件,文件属性和文件系统。java.nio.file.spi java.nio.file程序包的服务提供程序类。 -
-
Uses of OpenOption in java.net.http
Methods in java.net.http with parameters of type OpenOption 变量和类型 方法 描述 static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandlers. ofFile(Path file, OpenOption... openOptions)返回BodyHandler<Path>返回一个BodySubscriber<Path>从获得BodySubscribers.ofFile(Path,OpenOption...)。static HttpResponse.BodySubscriber<Path>HttpResponse.BodySubscribers. ofFile(Path file, OpenOption... openOptions)返回BodySubscriber,它将响应正文存储在使用给定选项和名称打开的文件中。static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandlers. ofFileDownload(Path directory, OpenOption... openOptions)返回BodyHandler<Path>,返回BodySubscriber<Path>,其中指定了下载目录,但文件名是从Content-Disposition响应头获取的。 -
Uses of OpenOption in java.nio.channels
Methods in java.nio.channels with parameters of type OpenOption 变量和类型 方法 描述 static AsynchronousFileChannelAsynchronousFileChannel. open(Path file, OpenOption... options)打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。static FileChannelFileChannel. open(Path path, OpenOption... options)打开或创建文件,返回文件通道以访问该文件。Method parameters in java.nio.channels with type arguments of type OpenOption 变量和类型 方法 描述 static AsynchronousFileChannelAsynchronousFileChannel. open(Path file, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。static FileChannelFileChannel. open(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)打开或创建文件,返回文件通道以访问该文件。 -
Uses of OpenOption in java.nio.file
Classes in java.nio.file that implement OpenOption 变量和类型 类 描述 classLinkOption定义如何处理符号链接的选项。classStandardOpenOption定义标准的打开选项。Methods in java.nio.file with parameters of type OpenOption 变量和类型 方法 描述 static BufferedWriterFiles. newBufferedWriter(Path path, Charset cs, OpenOption... options)打开或创建用于写入的文件,返回可用于以高效方式将文本写入文件的BufferedWriter。static BufferedWriterFiles. newBufferedWriter(Path path, OpenOption... options)打开或创建用于写入的文件,返回BufferedWriter以便以有效的方式将文本写入文件。static SeekableByteChannelFiles. newByteChannel(Path path, OpenOption... options)打开或创建文件,返回可搜索的字节通道以访问该文件。static InputStreamFiles. newInputStream(Path path, OpenOption... options)打开文件,返回输入流以从文件中读取。static OutputStreamFiles. newOutputStream(Path path, OpenOption... options)打开或创建文件,返回可用于将字节写入文件的输出流。static PathFiles. write(Path path, byte[] bytes, OpenOption... options)将字节写入文件。static PathFiles. write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options)将文本行写入文件。static PathFiles. write(Path path, Iterable<? extends CharSequence> lines, OpenOption... options)将文本行写入文件。static PathFiles. writeString(Path path, CharSequence csq, Charset cs, OpenOption... options)将CharSequence写入文件。static PathFiles. writeString(Path path, CharSequence csq, OpenOption... options)写一个CharSequence到一个文件。Method parameters in java.nio.file with type arguments of type OpenOption 变量和类型 方法 描述 static SeekableByteChannelFiles. newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)打开或创建文件,返回可搜索的字节通道以访问该文件。SeekableByteChannelSecureDirectoryStream. newByteChannel(T path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)在此目录中打开或创建文件,返回可搜索的字节通道以访问该文件。 -
Uses of OpenOption in java.nio.file.spi
Methods in java.nio.file.spi with parameters of type OpenOption 变量和类型 方法 描述 InputStreamFileSystemProvider. newInputStream(Path path, OpenOption... options)打开文件,返回输入流以从文件中读取。OutputStreamFileSystemProvider. newOutputStream(Path path, OpenOption... options)打开或创建文件,返回可用于将字节写入文件的输出流。Method parameters in java.nio.file.spi with type arguments of type OpenOption 变量和类型 方法 描述 AsynchronousFileChannelFileSystemProvider. newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。abstract SeekableByteChannelFileSystemProvider. newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)打开或创建文件,返回可搜索的字节通道以访问该文件。FileChannelFileSystemProvider. newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)打开或创建用于读取和/或写入的文件,返回文件通道以访问该文件。
-