1 package TAP
::Parser
::Iterator
::Stream
;
4 use TAP
::Parser
::Iterator
();
5 use vars
qw($VERSION @ISA);
6 @ISA = 'TAP::Parser::Iterator';
10 TAP::Parser::Iterator::Stream - Internal TAP::Parser Iterator
22 use TAP::Parser::Iterator;
23 my $it = TAP::Parser::Iterator::Stream->new(\*TEST);
27 Originally ripped off from L<Test::Harness>.
31 B<FOR INTERNAL USE ONLY!>
33 This is a simple iterator wrapper for filehandles.
41 =head2 Instance Methods
45 Iterate through it, of course.
49 Iterate raw input without applying any fixes for quirky input syntax.
53 Get the wait status for this iterator. Always returns zero.
57 Get the exit status for this iterator. Always returns zero.
62 my ( $class, $thing ) = @_;
68 ##############################################################################
70 sub wait { shift->exit }
71 sub exit { shift->{fh} ? () : 0 }
77 if ( defined( my $line = <$fh> ) ) {
89 close delete $self->{fh};