public function readIntOrIdentifier()
    {
        try {
            $isInt = $this->readBoolean();

            return ($isInt === true) ? $this->readInteger() : $this->readIdentifier();
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while reading an intOrIdentifier.";
            throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::INTORIDENTIFIER, $e);
        }
    }