Sdílet prostřednictvím


Reader.Lock Property

Definition

The object used to synchronize operations on this stream.

[Android.Runtime.Register("lock")]
protected Java.Lang.Object? Lock { get; set; }
[<Android.Runtime.Register("lock")>]
member this.Lock : Java.Lang.Object with get, set

Property Value

Attributes

Remarks

The object used to synchronize operations on this stream. For efficiency, a character-stream object may use an object other than itself to protect critical sections. A subclass should therefore use the object in this field rather than this or a synchronized method.

Java documentation for java.io.Reader.lock.

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