AsynchronousFileChannel.Open Method

Definition

Overloads

Open(IPath, ICollection<IOpenOption>, IExecutorService, IFileAttribute[])

Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.

Open(IPath, IOpenOption[])

Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.

Open(IPath, ICollection<IOpenOption>, IExecutorService, IFileAttribute[])

Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.

[Android.Runtime.Register("open", "(Ljava/nio/file/Path;Ljava/util/Set;Ljava/util/concurrent/ExecutorService;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/AsynchronousFileChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.AsynchronousFileChannel? Open (Java.Nio.FileNio.IPath? file, System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption>? options, Java.Util.Concurrent.IExecutorService? executor, params Java.Nio.FileNio.Attributes.IFileAttribute[]? attrs);
[<Android.Runtime.Register("open", "(Ljava/nio/file/Path;Ljava/util/Set;Ljava/util/concurrent/ExecutorService;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/AsynchronousFileChannel;", "", ApiSince=26)>]
static member Open : Java.Nio.FileNio.IPath * System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption> * Java.Util.Concurrent.IExecutorService * Java.Nio.FileNio.Attributes.IFileAttribute[] -> Java.Nio.Channels.AsynchronousFileChannel

Parameters

file
IPath

The path of the file to open or create

options
ICollection<IOpenOption>

Options specifying how the file is opened

executor
IExecutorService
attrs
IFileAttribute[]

Returns

A new asynchronous file channel

Attributes

Remarks

Java documentation for java.nio.channels.AsynchronousFileChannel.open(java.nio.file.Path, java.nio.file.OpenOption).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Open(IPath, IOpenOption[])

Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.

[Android.Runtime.Register("open", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/AsynchronousFileChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.AsynchronousFileChannel? Open (Java.Nio.FileNio.IPath? file, params Java.Nio.FileNio.IOpenOption[]? options);
[<Android.Runtime.Register("open", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/AsynchronousFileChannel;", "", ApiSince=26)>]
static member Open : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IOpenOption[] -> Java.Nio.Channels.AsynchronousFileChannel

Parameters

file
IPath

The path of the file to open or create

options
IOpenOption[]

Options specifying how the file is opened

Returns

A new asynchronous file channel

Attributes

Remarks

Java documentation for java.nio.channels.AsynchronousFileChannel.open(java.nio.file.Path, java.nio.file.OpenOption).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to