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

Version Path
rubyzip-2.3.2 lib/zip/decompressor.rb
rubyzip-2.3.1 lib/zip/decompressor.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/rubyzip-2.3.0/lib/zip/decompressor.rb