Sha256: 09d03037e425a046b60f5d73923ccce8c30d0ff52d5c9982060009ddc7e2871f
Contents?: true
Size: 329 Bytes
Versions: 2
Compression:
Stored size: 329 Bytes
Contents
module IOStreams module Gzip class Reader < IOStreams::Reader # Read from a gzip stream, decompressing the contents as it is read def self.stream(input_stream, original_file_name: nil) io = ::Zlib::GzipReader.new(input_stream) yield io ensure io&.close end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iostreams-1.10.3 | lib/io_streams/gzip/reader.rb |
iostreams-1.10.2 | lib/io_streams/gzip/reader.rb |