function setRHandler($resOrigin)
    {
        if (!is_resource($resOrigin))
            throw new \InvalidArgumentException(sprintf(
                'This is not valid stream resource. given: "%s"',
                is_object($resOrigin) ? get_class($resOrigin) : gettype($resOrigin)
            ));

        
        $this->rHandler = $resOrigin;
        return $this;
    }