-
- 所有已知实现类:
-
LinkOption
,StandardOpenOption
public interface OpenOption
配置如何打开或创建文件的对象。这种类型的目的通过方法,诸如使用
newOutputStream
,newByteChannel
,FileChannel.open
,和AsynchronousFileChannel.open
打开或创建文件时。StandardOpenOption
枚举类型定义标准选项。- 从以下版本开始:
- 1.7
LinkOption
,
StandardOpenOption
public interface OpenOption
这种类型的目的通过方法,诸如使用newOutputStream
, newByteChannel
, FileChannel.open
,和AsynchronousFileChannel.open
打开或创建文件时。
StandardOpenOption
枚举类型定义标准选项。