Dela via


AtomicFile.OpenRead Method

Definition

Open the atomic file for reading.

[Android.Runtime.Register("openRead", "()Ljava/io/FileInputStream;", "GetOpenReadHandler")]
public virtual System.IO.Stream? OpenRead ();
[<Android.Runtime.Register("openRead", "()Ljava/io/FileInputStream;", "GetOpenReadHandler")>]
abstract member OpenRead : unit -> System.IO.Stream
override this.OpenRead : unit -> System.IO.Stream

Returns

Attributes

Exceptions

Remarks

Open the atomic file for reading. You should call close() on the FileInputStream when you are done reading from it.

You must do your own threading protection for access to AtomicFile.

Java documentation for android.util.AtomicFile.openRead().

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