Class: Fluent::Plugin::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
281
282
283
|
# File 'lib/fluent/plugin/in_s3.rb', line 281
def content_type
'application/x-gzip'.freeze
end
|
#ext ⇒ Object
277
278
279
|
# File 'lib/fluent/plugin/in_s3.rb', line 277
def ext
'gz'.freeze
end
|
285
286
287
288
289
|
# File 'lib/fluent/plugin/in_s3.rb', line 285
def (io)
Zlib::GzipReader.wrap(io) do |gz|
gz.read
end
end
|