다음을 통해 공유


ISecureDirectoryStream.NewByteChannel Method

Definition

Opens or creates a file in this directory, returning a seekable byte channel to access the file.

[Android.Runtime.Register("newByteChannel", "(Ljava/lang/Object;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;", "GetNewByteChannel_Ljava_lang_Object_Ljava_util_Set_arrayLjava_nio_file_attribute_FileAttribute_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.Channels.ISeekableByteChannel? NewByteChannel (Java.Lang.Object? path, System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption>? options, params Java.Nio.FileNio.Attributes.IFileAttribute[]? attrs);
[<Android.Runtime.Register("newByteChannel", "(Ljava/lang/Object;Ljava/util/Set;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/channels/SeekableByteChannel;", "GetNewByteChannel_Ljava_lang_Object_Ljava_util_Set_arrayLjava_nio_file_attribute_FileAttribute_Handler:Java.Nio.FileNio.ISecureDirectoryStreamInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member NewByteChannel : Java.Lang.Object * System.Collections.Generic.ICollection<Java.Nio.FileNio.IOpenOption> * Java.Nio.FileNio.Attributes.IFileAttribute[] -> Java.Nio.Channels.ISeekableByteChannel

Parameters

path
Object

the path of the file to open open or create

options
ICollection<IOpenOption>

options specifying how the file is opened

attrs
IFileAttribute[]

an optional list of attributes to set atomically when creating the file

Returns

the seekable byte channel

Attributes

Remarks

Java documentation for java.nio.file.SecureDirectoryStream.newByteChannel(java.lang.Object, java.util.Set, java.nio.file.attribute.FileAttribute).

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