public function readBoolean()
    {
        try {
            $int = ord($this->getStream()->read(1));

            return ($int === 0) ? false : true;
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::BOOLEAN);
        }
    }
public function readBoolean()
    {
        try {
            $int = ord($this->getStream()->read(1));

            return ($int === 0) ? false : true;
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::BOOLEAN);
        }
    }
public function readBoolean ( ) { try { $ int = ord ( $ this -> getStream ( ) -> read ( 1 ) ) ; return ( $ int === 0 ) ? false : true ; } catch ( StreamException $ e ) { $ this -> handleStreamException ( $ e , BinaryStreamAccessException :: BOOLEAN ) ; } }
Read a boolean value from the current binary stream.

@throws \qtism\common\storage\BinaryStreamAccessException
@return boolean
Read a boolean value from the current binary stream .