NAME
UniEvent::Streamer::FileInput - file input for streamer
SYNOPSIS
my
$input
= UE::Streamer::FileInput->new(
"file.txt"
);
my
$streamer
= UE::Streamer->new(
$input
,
$output
);
$streamer
->start();
$streamer
->finish_callback(
sub
{ ... });
DESCRIPTION
Reads file content into and feeds it further to the UniEvent::Streamer.
METHODS
new($path, [$chunk_size = 1_000_000])
Constructs new file input stream for the file located at $path
and will read it by $chunk_size
bytes chunks.