Share via


DataOutputStream.WriteBoolean(Boolean) Method

Definition

Writes a boolean to the underlying output stream as a 1-byte value.

[Android.Runtime.Register("writeBoolean", "(Z)V", "")]
public void WriteBoolean (bool v);
[<Android.Runtime.Register("writeBoolean", "(Z)V", "")>]
abstract member WriteBoolean : bool -> unit
override this.WriteBoolean : bool -> unit

Parameters

v
Boolean

a boolean value to be written.

Implements

Attributes

Exceptions

if an error occurs while writing to the target stream.

Remarks

Writes a boolean to the underlying output stream as a 1-byte value. The value true is written out as the value (byte)1; the value false is written out as the value (byte)0. If no exception is thrown, the counter written is incremented by 1.

Java documentation for java.io.DataOutputStream.writeBoolean(boolean).

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