RandomAccessFile.writeBoolean

RandomAccessFile.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 file 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.