class Zip::OutputStream
def initialize(file_name, dep_stream = false, dep_encrypter = nil, stream: false, encrypter: nil)
Opens the indicated zip file. If a file with that name already
def initialize(file_name, dep_stream = false, dep_encrypter = nil, stream: false, encrypter: nil) super() Zip.warn_about_v3_api('Zip::OutputStream.new') if dep_stream || !dep_encrypter.nil? @file_name = file_name @output_stream = if stream || dep_stream iostream = @file_name.dup iostream.reopen(@file_name) iostream.rewind iostream else ::File.new(@file_name, 'wb') end @entry_set = ::Zip::EntrySet.new @compressor = ::Zip::NullCompressor.instance @encrypter = encrypter || dep_encrypter || ::Zip::NullEncrypter.new @closed = false @current_entry = nil @comment = nil end