Sha256: 050168e8c55be768a3e4bc8406309fbae1adcd0395afb2ebb18a9f4b0f645c0e
Contents?: true
Size: 794 Bytes
Versions: 45
Compression:
Stored size: 794 Bytes
Contents
module Zip class Decompressor #:nodoc:all CHUNK_SIZE = 32_768 def self.decompressor_classes @decompressor_classes ||= {} end def self.register(compression_method, decompressor_class) decompressor_classes[compression_method] = decompressor_class end def self.find_by_compression_method(compression_method) decompressor_classes[compression_method] end attr_reader :input_stream attr_reader :decompressed_size def initialize(input_stream, decompressed_size = nil) super() @input_stream = input_stream @decompressed_size = decompressed_size end end end # Copyright (C) 2002, 2003 Thomas Sondergaard # rubyzip is free software; you can redistribute it and/or # modify it under the terms of the ruby license.
Version data entries
45 entries across 35 versions & 8 rubygems