public function writePath(array $path) {
        try {
            $this->writeShort(count($path));
            foreach ($path as $p) {
                $this->writeShort($p);
            }
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while writing the path.";
    		throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::PATH, $e);
        }
    }
public function writePath(array $path) {
        try {
            $this->writeShort(count($path));
            foreach ($path as $p) {
                $this->writeShort($p);
            }
        } catch (BinaryStreamAccessException $e) {
            $msg = "An error occured while writing the path.";
    		throw new QtiBinaryStreamAccessException($msg, $this, QtiBinaryStreamAccessException::PATH, $e);
        }
    }
public function writePath ( array $ path ) { try { $ this -> writeShort ( count ( $ path ) ) ; foreach ( $ path as $ p ) { $ this -> writeShort ( $ p ) ; } } catch ( BinaryStreamAccessException $ e ) { $ msg = "An error occured while writing the path." ; throw new QtiBinaryStreamAccessException ( $ msg , $ this , QtiBinaryStreamAccessException :: PATH , $ e ) ; } }
Write the path in the current binary stream.

@param array $path An array of integer values representing flow positions.
Write the path in the current binary stream .