public function readPair()
    {
        try {
            return new QtiPair($this->readString(), $this->readString());
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while reading a pair.";
            throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::PAIR, $e);
        }
    }
public function readPair()
    {
        try {
            return new QtiPair($this->readString(), $this->readString());
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while reading a pair.";
            throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::PAIR, $e);
        }
    }
public function readPair ( ) { try { return new QtiPair ( $ this -> readString ( ) , $ this -> readString ( ) ) ; } catch ( BinaryStreamAccessException $ e ) { $ msg = "An error occured while reading a pair." ; throw new QtiBinaryStreamAccessException ( $ msg , $ this , QtiBinaryStreamAccessException :: PAIR , $ e ) ; } }
Read a Pair from the current binary stream.

@throws \qtism\runtime\storage\binary\QtiBinaryStreamAccessException
@return \qtism\common\datatypes\Pair A Pair object.
Read a Pair from the current binary stream .