Share via


Reader.Ready Method

Definition

Tells whether this stream is ready to be read.

[Android.Runtime.Register("ready", "()Z", "GetReadyHandler")]
public virtual bool Ready ();
[<Android.Runtime.Register("ready", "()Z", "GetReadyHandler")>]
abstract member Ready : unit -> bool
override this.Ready : unit -> bool

Returns

True if the next read() is guaranteed not to block for input, false otherwise. Note that returning false does not guarantee that the next read will block.

Attributes

Exceptions

if this reader is closed or some other I/O error occurs.

Remarks

Tells whether this stream is ready to be read.

Java documentation for java.io.Reader.ready().

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

See also

  • Read()
  • Read(Char[])
  • <xref:Java.IO.Reader.Read(System.Char%5b%5d%2c+System.Int32%2c+System.Int32)>