RandomAccessFile.readBoolean
Class Overview | Class Members |
This Package |
All Packages
public final boolean readBoolean() throws IOException
Returns
the boolean value read.
Description
Reads a boolean from this file. This method reads a
single byte from the file. 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.
Exceptions
EOFException
if this file has reached the end.
Exceptions
IOException
if an I/O error occurs.