다음을 통해 공유


AtomicFile.FinishWrite(Stream) Method

Definition

Call when you have successfully finished writing to the stream returned by #startWrite().

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

Parameters

str
Stream
Attributes

Remarks

Call when you have successfully finished writing to the stream returned by #startWrite(). This will close, sync, and commit the new data. The next attempt to read the atomic file will return the new file stream.

Java documentation for android.util.AtomicFile.finishWrite(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