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
13 with 'Business::BatchPayment::Transport';
17 isa => 'Maybe[FileHandle|Str]',
19 warn "no input passed to file transport; using /dev/null";
27 isa => 'Maybe[FileHandle|Str]',
29 warn "no output passed to file transport; using /dev/null";
39 if ( ref $self->output ) {
42 $fh = IO::File->new();
43 $fh->open($self->output,'>')
44 or die "couldn't write to ".$self->output;
52 if ( ref $self->input ) {
55 $fh = IO::File->new();
56 $fh->open($self->input,'<')
57 or die "couldn't read from ".$self->input;