public abstract void writeBoolean (boolean v) throws IOException

Writes a boolean value to this output stream. If the argument v is true, the value (byte)1 is written; if v is false, the value (byte)0 is written. The byte written by this method may be read by the readBoolean method of interface DataInput, which will then return a boolean equal to v.

Parameters:
v    the boolean to be written.

Exceptions:
IOException    if an I/O error occurs.