AtomicFile.FinishWrite(Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.