public function readPath() {
        try {
            $pathCount = $this->readShort();
            $path = array();
            
            for ($i = 0; $i < $pathCount; $i++) {
                $path[] = $this->readShort();
            }
            
            return $path;
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while reading the path.";
    		throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::PATH, $e);
        }
    }