# OpenOption

public interface **OpenOption**

|---|---|---|
| Known Indirect Subclasses [LinkOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html), [StandardOpenOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/StandardOpenOption.html) |---|---| | [LinkOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/LinkOption.html) | Defines the options as to how symbolic links are handled. | | [StandardOpenOption](https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/StandardOpenOption.html) | Defines the standard open options. | |||

An object that configures how to open or create a file.

Objects of this type are used by methods such as `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#newOutputStream(java.nio.file.Path,%20java.nio.file.OpenOption...)`, `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/Files.html#newByteChannel(java.nio.file.Path,%20java.nio.file.OpenOption...)`, `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/FileChannel.html#open(java.nio.file.Path,%20java.nio.file.OpenOption...)`, and `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/channels/AsynchronousFileChannel.html#open(java.nio.file.Path,%20java.nio.file.OpenOption...)`
when opening or creating a file.

The `https://developers.google.com/j2objc/javadoc/jre/reference/java/nio/file/StandardOpenOption.html` enumeration type defines the
*standard* options.