function rewind()
    {
        $this->_assertSeekable();

        $stream = $this->resource()->getRHandler();

        if (false === rewind($stream))
            throw new \RuntimeException('Cannot rewind stream');

        return $this;
    }
function rewind()
    {
        $this->_assertSeekable();

        $stream = $this->resource()->getRHandler();

        if (false === rewind($stream))
            throw new \RuntimeException('Cannot rewind stream');

        return $this;
    }
function rewind ( ) { $ this -> _assertSeekable ( ) ; $ stream = $ this -> resource ( ) -> getRHandler ( ) ; if ( false === rewind ( $ stream ) ) throw new \ RuntimeException ( 'Cannot rewind stream' ) ; return $ this ; }
Move the file pointer to the beginning of the stream

! php doesn't support seek/rewind on non-local streams
we can using temp/cache piped stream.

! If you have opened the file in append ("a" or "a+") mode,
any data you write to the file will always be appended,
regardless of the file position.

@return $this
Move the file pointer to the beginning of the stream