Condividi tramite


RandomAccessFile.ReadBoolean Method

Definition

Reads a boolean from this file.

[Android.Runtime.Register("readBoolean", "()Z", "")]
public bool ReadBoolean ();
[<Android.Runtime.Register("readBoolean", "()Z", "")>]
abstract member ReadBoolean : unit -> bool
override this.ReadBoolean : unit -> bool

Returns

the boolean value read.

Implements

Attributes

Exceptions

if the end of this file is detected.

if this file is closed or another I/O error occurs.

Remarks

Reads a boolean from this file. This method reads a single byte from the file, starting at the current file pointer. A value of 0 represents false. Any other value represents true. This method blocks until the byte is read, the end of the stream is detected, or an exception is thrown.

Java documentation for java.io.RandomAccessFile.readBoolean().

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