Class: Fluent::ExecFilterOutput::MessagePackParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/fluent/plugin/out_exec_filter.rb

Instance Method Summary collapse

Methods inherited from Parser

#initialize

Constructor Details

This class inherits a constructor from Fluent::ExecFilterOutput::Parser

Instance Method Details

#call(io) ⇒ Object



414
415
416
417
418
419
420
# File 'lib/fluent/plugin/out_exec_filter.rb', line 414

def call(io)
  @u = MessagePack::Unpacker.new(io)
  begin
    @u.each(&@on_message)
  rescue EOFError
  end
end