Files.NewByteChannel Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
NewByteChannel(IPath, IOpenOption[]) |
Opens or creates a file, returning a seekable byte channel to access the file. |
NewByteChannel(IPath, ICollection<IOpenOption>, IFileAttribute[]) |
Opens or creates a file, returning a seekable byte channel to access the file. |
NewByteChannel(IPath, IOpenOption[])
Opens or creates a file, returning a seekable byte channel to access the file.
[Android.Runtime.Register("newByteChannel", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/SeekableByteChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.ISeekableByteChannel? NewByteChannel (Java.Nio.FileNio.IPath? path, params Java.Nio.FileNio.IOpenOption[]? options);
[<Android.Runtime.Register("newByteChannel", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/SeekableByteChannel;", "", ApiSince=26)>]
static member NewByteChannel : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IOpenOption[] -> Java.Nio.Channels.ISeekableByteChannel
Parameters
- path
- IPath
the path to the file to open or create
- options
- IOpenOption[]
options specifying how the file is opened
Returns
a new seekable byte channel
- Attributes
Remarks
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
NewByteChannel(IPath, ICollection<IOpenOption>, IFileAttribute[])
Opens or creates a file, returning a seekable byte channel to access the file.
[Android.Runtime.Register("newByteChannel", "(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;", "", ApiSince=26)]
public static Java.Nio.Channels.ISeekableByteChannel? NewByteChannel (Java.Nio.FileNio.IPath? path, System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption>? options, params Java.Nio.FileNio.Attributes.IFileAttribute[]? attrs);
[<Android.Runtime.Register("newByteChannel", "(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;", "", ApiSince=26)>]
static member NewByteChannel : Java.Nio.FileNio.IPath * System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption> * Java.Nio.FileNio.Attributes.IFileAttribute[] -> Java.Nio.Channels.ISeekableByteChannel
Parameters
- path
- IPath
the path to the file to open or create
- options
- ICollection<IOpenOption>
options specifying how the file is opened
- attrs
- IFileAttribute[]
Returns
a new seekable byte channel
- Attributes
Remarks
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.