readBoolean method

bool readBoolean()

Reads a byte, and returns false if it is 0, true otherwise.

Throws EOFException if EOF is reached before the needed byte is read.

Implementation

bool readBoolean() {
  return readUnsignedByte() != 0;
}