The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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.