function _putstream($s) { if ($this->encrypted) { $s = RC4($this->_objectkey($this->n), $s); } parent::_putstream($s); }