NAME

UniEvent::Streamer::StreamInput - stream input for streamer

SYNOPSIS

my $stream = UE::Tcp->new;
# connect stream
my $input = UE::Streamer::StreamInput->new($stream);
my $streamer = UE::Streamer->new($input, $output);
$streamer->start();
$streamer->finish_callback(sub { ... });

DESCRIPTION

Pulls in data from stream and pushes it into UniEvent::Streamer.

The underlying stream can be UniEvent::Tcp, UniEvent::Pipe or UniEvent::Tty.

METHODS

new($stream)

Constructs new input stream for from the UniEvent::Stream handle.