public function write(Iterator $dataIterator)
    {
        $this->initialize();
        foreach ($dataIterator as $item) {
            $this->writeItem($item);
        }
        $this->finish();
    }
public function write(Iterator $dataIterator)
    {
        $this->initialize();
        foreach ($dataIterator as $item) {
            $this->writeItem($item);
        }
        $this->finish();
    }
public function write ( Iterator $ dataIterator ) { $ this -> initialize ( ) ; foreach ( $ dataIterator as $ item ) { $ this -> writeItem ( $ item ) ; } $ this -> finish ( ) ; }
Write the feed.

@param Iterator|ArrayAccess[] $dataIterator

@return void
Write the feed .