DataOutputStream.writeBoolean

DataOutputStream.writeBoolean

Class Overview | Class Members | This Package | All Packages

Syntax
public final void writeBoolean( boolean v ) throws IOException
Parameters
v
a boolean value to be written.
Description
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.

Exceptions
IOException if an I/O error occurs.
See Also
out