Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary:

# OpenOption

` public interface OpenOption `   
` `

|---|
| java.nio.file.OpenOption |

Known indirect subclasses [LinkOption](https://developer.android.com/reference/java/nio/file/LinkOption), [StandardOpenOption](https://developer.android.com/reference/java/nio/file/StandardOpenOption) [LinkOption](https://developer.android.com/reference/java/nio/file/LinkOption) Defines the options as to how symbolic links are handled. [StandardOpenOption](https://developer.android.com/reference/java/nio/file/StandardOpenOption) 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://developer.android.com/reference/java/nio/file/Files#newOutputStream(java.nio.file.Path,%20java.nio.file.OpenOption[])`, `https://developer.android.com/reference/java/nio/file/Files#newByteChannel(java.nio.file.Path,%20java.nio.file.OpenOption[])`, `https://developer.android.com/reference/java/nio/channels/FileChannel#open(java.nio.file.Path,%20java.nio.file.OpenOption[])`, and `https://developer.android.com/reference/java/nio/channels/AsynchronousFileChannel#open(java.nio.file.Path,%20java.nio.file.OpenOption[])` when opening or creating a file.

The `https://developer.android.com/reference/java/nio/file/StandardOpenOption` enumeration type defines the *standard* options.