Uses of Interface
java.nio.file.OpenOption
-
Packages that use OpenOption 软件包 描述 java.nio.channels 定义通道,其表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。java.nio.file 定义Java虚拟机访问文件,文件属性和文件系统的接口和类。java.nio.file.spi 服务提供商类为java.nio.file包。jdk.incubator.http 高级HTTP和WebSocket API -
-
Uses of OpenOption in java.nio.channels
Methods in java.nio.channels with parameters of type OpenOption Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 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 Modifier and Type Class 描述 classLinkOption定义如何处理符号链接的选项。classStandardOpenOption定义标准的开放选项。Methods in java.nio.file with parameters of type OpenOption Modifier and Type 方法 描述 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)将文本行写入文件。Method parameters in java.nio.file with type arguments of type OpenOption Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 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 Modifier and Type 方法 描述 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)打开或创建用于读取和/或写入的文件,返回文件通道以访问该文件。 -
Uses of OpenOption in jdk.incubator.http
Methods in jdk.incubator.http with parameters of type OpenOption Modifier and Type 方法 描述 static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandler. asFile(Path file, OpenOption... openOptions)返回一个BodyHandler<Path>,返回一个从<Path>获得的BodyProcessor<Path> 。static HttpResponse.BodyProcessor<Path>HttpResponse.BodyProcessor. asFile(Path file, OpenOption... openOptions)返回一个BodyProcessor,它将响应体存储在使用给定选项和名称打开的文件中。static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandler. asFileDownload(Path directory, OpenOption... openOptions)返回一个BodyHandler<Path>,返回一个BodyProcessor<Path>其中指定了下载目录,但文件名是从Content-Disposition响应头获取的。
-