- 所有已知的实现类:
LinkOption,StandardOpenOption
public interface OpenOption
配置如何打开或创建文件的对象。
打开或创建文件时,此类对象由 newOutputStream 、 newByteChannel 、 FileChannel.open 和 AsynchronousFileChannel.open 等方法使用。
StandardOpenOption 枚举类型定义了标准选项。
- 自从:
- 1.7