NAME
UniEvent::Streamer::FileOutput - file output for streamer
SYNOPSIS
my
$output
= UE::Streamer::FileOutput->new(
"file.txt"
);
my
$streamer
= UE::Streamer->new(
$input
,
$output
);
$streamer
->start();
$streamer
->finish_callback(
sub
{ ... });
DESCRIPTION
Writes incoming pieces of data, coming from UniEvent::Streamer into file.
METHODS
new($path, [$mode = 0644])
Constructs new file output stream, which will write data into $path
.
If file doesn't exist, it will be created with $mode
permissions.
NOTE: it will not create any non-existing subdirectories in $path
. In this case the process will end up with error.