=head1 NAME

UniEvent::Streamer::FileOutput - file output for streamer



=head1 SYNOPSIS

    my $output = UE::Streamer::FileOutput->new("file.txt");
    my $streamer = UE::Streamer->new($input, $output);
    $streamer->start();
    $streamer->finish_callback(sub { ... });



=head1 DESCRIPTION

Writes incoming pieces of data, coming from L<UniEvent::Streamer> into file.



=head1 METHODS

=head2 new($path, [$mode = 0644])

Constructs new file output stream, which will write data into C<$path>.

If file doesn't exist, it will be created with C<$mode> permissions.

NOTE: it will not create any non-existing subdirectories in C<$path>. In this case the process will end up with error.

=cut
