Class | Archive::Zip::Codec::NullEncryption::Encrypt |
In: |
lib/archive/zip/codec/null_encryption.rb
|
Parent: | Object |
Archive::Zip::Codec::NullEncryption::Encrypt is a writable, IO-like object which writes all data written to it directly to a delegate IO object. A close method is also provided which can optionally closed the delegate object.
Creates a new instance of this class using io as a data sink. io must be writable and must provide a write method as IO does or errors will be raised when performing write operations.
The flush_size attribute is set to 0 by default under the assumption that io is already buffered.
Closes this object so that further write operations will fail. If close_delegate is true, the delegate object used as a data sink will also be closed using its close method.