NAME

Archive::Lha::Stream::File

SYNOPSIS

my $stream = Archive::Lha::Stream::File->new;
$stream->open( file => 'some.lzh' );

# equivalent
my $stream = Archive::Lha::Stream::File->new( file => 'some.lzh' );

DESCRIPTION

This is a thin wrapper for the builtin I/O functions.

METHODS

new

creates an object, and optionally opens an archive file.

open

takes a hash as an argument and opens a specified file, locks it, and makes it raw, binary mode.

close

closes the file.

eof

sees if the file reached end of file.

tell

returns the current position.

seek

takes an offset as an argument and sets the position from the file top.

read

takes a length as an argument and returns the chunks of the length (in bytes) from the file.

search_header

searches for the next lzh header.

SEE ALSO

Archive::Lha::Stream

AUTHOR

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2007 by Kenichi Ishigaki.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.