public function readString()
    {
        try {
            $binLength = $this->getStream()->read(2);
            $length = current(unpack('S', $binLength));

            return $this->getStream()->read($length);
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::STRING);
        }
    }
public function readString()
    {
        try {
            $binLength = $this->getStream()->read(2);
            $length = current(unpack('S', $binLength));

            return $this->getStream()->read($length);
        } catch (StreamException $e) {
            $this->handleStreamException($e, BinaryStreamAccessException::STRING);
        }
    }
public function readString ( ) { try { $ binLength = $ this -> getStream ( ) -> read ( 2 ) ; $ length = current ( unpack ( 'S' , $ binLength ) ) ; return $ this -> getStream ( ) -> read ( $ length ) ; } catch ( StreamException $ e ) { $ this -> handleStreamException ( $ e , BinaryStreamAccessException :: STRING ) ; } }
Read a string value from the current binary stream.

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