AssetFileDescriptor.CreateOutputStream Method

Definition

Create and return a new auto-close output stream for this asset.

[Android.Runtime.Register("createOutputStream", "()Ljava/io/FileOutputStream;", "GetCreateOutputStreamHandler")]
public virtual System.IO.Stream? CreateOutputStream ();
[<Android.Runtime.Register("createOutputStream", "()Ljava/io/FileOutputStream;", "GetCreateOutputStreamHandler")>]
abstract member CreateOutputStream : unit -> System.IO.Stream
override this.CreateOutputStream : unit -> System.IO.Stream

Returns

Attributes

Exceptions

Remarks

Create and return a new auto-close output stream for this asset. This will either return a full asset AutoCloseOutputStream, or an underlying ParcelFileDescriptor.AutoCloseOutputStream ParcelFileDescriptor.AutoCloseOutputStream depending on whether the the object represents a complete file or sub-section of a file. You should only call this once for a particular asset.

Java documentation for android.content.res.AssetFileDescriptor.createOutputStream().

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