Udostępnij za pośrednictwem


FileSystemProvider.NewOutputStream(IPath, IOpenOption[]) Method

Definition

Opens or creates a file, returning an output stream that may be used to write bytes to the file.

[Android.Runtime.Register("newOutputStream", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;", "GetNewOutputStream_Ljava_nio_file_Path_arrayLjava_nio_file_OpenOption_Handler", ApiSince=26)]
public virtual System.IO.Stream? NewOutputStream (Java.Nio.FileNio.IPath? path, params Java.Nio.FileNio.IOpenOption[]? options);
[<Android.Runtime.Register("newOutputStream", "(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;", "GetNewOutputStream_Ljava_nio_file_Path_arrayLjava_nio_file_OpenOption_Handler", ApiSince=26)>]
abstract member NewOutputStream : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IOpenOption[] -> System.IO.Stream
override this.NewOutputStream : Java.Nio.FileNio.IPath * Java.Nio.FileNio.IOpenOption[] -> System.IO.Stream

Parameters

path
IPath

the path to the file to open or create

options
IOpenOption[]

options specifying how the file is opened

Returns

a new output stream

Attributes

Remarks

Java documentation for java.nio.file.spi.FileSystemProvider.newOutputStream(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