1 package Business::BatchPayment::Transport::File;
5 The simplest case. Takes two arguments, 'input' and 'output'. These can
6 be open filehandles or strings naming files. If unspecified, they default
14 with 'Business::BatchPayment::Transport';
18 isa => 'Maybe[FileHandle|Str]',
20 warn "no input passed to file transport; using /dev/null";
28 isa => 'Maybe[FileHandle|Str]',
30 warn "no output passed to file transport; using /dev/null";
40 if ( ref $self->output ) {
43 $fh = IO::File->new();
44 $fh->open($self->output,'>')
45 or die "couldn't write to ".$self->output;
53 if ( ref $self->input ) {
56 $fh = IO::File->new();
57 $fh->open($self->input,'<')
58 or die "couldn't read from ".$self->input;