Sha256: 25c9dfcd3b0fc093f539b7e48b6e4bf9328a307ce4ced33394d0d2bbb24c60fa
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
module IOStreams module Bzip2 class Reader < IOStreams::Reader # Read from a Bzip2 stream, decompressing the contents as it is read def self.stream(input_stream, **_args) Utils.load_dependency('rbzip2', 'Bzip2') unless defined?(RBzip2) begin io = RBzip2.default_adapter::Decompressor.new(input_stream) yield io ensure io&.close end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iostreams-1.0.0.beta2 | lib/io_streams/bzip2/reader.rb |
iostreams-1.0.0.beta | lib/io_streams/bzip2/reader.rb |