Udostępnij za pośrednictwem


AtomicFile.FailWrite(Stream) Method

Definition

Call when you have failed for some reason at writing to the stream returned by #startWrite().

[Android.Runtime.Register("failWrite", "(Ljava/io/FileOutputStream;)V", "GetFailWrite_Ljava_io_FileOutputStream_Handler")]
public virtual void FailWrite (System.IO.Stream? str);
[<Android.Runtime.Register("failWrite", "(Ljava/io/FileOutputStream;)V", "GetFailWrite_Ljava_io_FileOutputStream_Handler")>]
abstract member FailWrite : System.IO.Stream -> unit
override this.FailWrite : System.IO.Stream -> unit

Parameters

str
Stream
Attributes

Remarks

Call when you have failed for some reason at writing to the stream returned by #startWrite(). This will close the current write stream, and delete the new file.

Java documentation for android.util.AtomicFile.failWrite(java.io.FileOutputStream).

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