Class: Fluent::S3Input::GzipExtractor
Instance Attribute Summary
Attributes inherited from Extractor
#log
Instance Method Summary
collapse
Methods inherited from Extractor
#configure, #initialize
Instance Method Details
#content_type ⇒ Object
268
269
270
|
# File 'lib/fluent/plugin/in_s3.rb', line 268
def content_type
'application/x-gzip'.freeze
end
|
#ext ⇒ Object
264
265
266
|
# File 'lib/fluent/plugin/in_s3.rb', line 264
def ext
'gz'.freeze
end
|
272
273
274
275
276
|
# File 'lib/fluent/plugin/in_s3.rb', line 272
def (io)
Zlib::GzipReader.wrap(io) do |gz|
gz.read
end
end
|