DataInput.readBoolean

Reads one input byte and returns {@code true} if that byte is nonzero, {@code false} if that byte is zero. This method is suitable for reading the byte written by the {@code writeBoolean} method of interface {@code DataOutput}.

@return the {@code bool} value read. @exception EOFException if this stream reaches the end before reading all the bytes. @exception IOException if an I/O error occurs.

interface DataInput
bool
readBoolean
()

Meta