public function toString()
    {
        $result = '';

        if ($this->isReadable() && $this->isSeekable())
        {
            $position = $this->peek();

            $this->seek(0);
            $result = stream_get_contents($this->_resource);
            $this->seek($position);
        }

        return $result;
    }