DataInputStream.readBoolean

DataInputStream.readBoolean

Class Overview | Class Members | This Package | All Packages

Syntax
public final boolean readBoolean() throws IOException
Returns
the boolean value read.
Description
Reads a boolean from this data input stream. This method reads a single byte from the underlying input stream. A value of 0 represents false. Any other value represents true. This method blocks until either the byte is read, the end of the stream is detected, or an exception is thrown.

Exceptions
EOFException if this input stream has reached the end.
Exceptions
IOException if an I/O error occurs.
See Also
in