Files.NewByteChannel 方法

定義

多載

NewByteChannel(IPath, IOpenOption[])

開啟或建立檔案,傳回可搜尋的位元組通道以存取檔案。

NewByteChannel(IPath, ICollection<IOpenOption>, IFileAttribute[])

開啟或建立檔案,傳回可搜尋的位元組通道以存取檔案。

NewByteChannel(IPath, IOpenOption[])

開啟或建立檔案,傳回可搜尋的位元組通道以存取檔案。

[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

參數

path
IPath

要開啟或建立之檔案的路徑

options
IOpenOption[]

指定檔案開啟方式的選項

傳回

新的可搜尋位元組通道

屬性

備註

java.nio.file.Files.newByteChannel(java.nio.file.Path, java.nio.file.OpenOption)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

NewByteChannel(IPath, ICollection<IOpenOption>, IFileAttribute[])

開啟或建立檔案,傳回可搜尋的位元組通道以存取檔案。

[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

參數

path
IPath

要開啟或建立之檔案的路徑

options
ICollection<IOpenOption>

指定檔案開啟方式的選項

attrs
IFileAttribute[]

傳回

新的可搜尋位元組通道

屬性

備註

java.nio.file.Files.newByteChannel(java.nio.file.Path, java.nio.file.OpenOption)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於