
Archive::Lha::Stream::String

my $stream = Archive::Lha::Stream::String->new( string => 'content_of_lzh_file' );

Sometimes you might want to read the content of an .lzh file from DB and the likes. You don't need to prepare a temporary file to store it. Just pass it directly to this stream.

creates an object, and optionally store a string in the object.
takes a hash as an argument and stores the string in the object.
does nothing.
sees if the position reached end of the string.
returns the current position.
takes an offset as an argument and sets the position from the string top.
takes a length as an argument and returns the chunks of the length (in bytes) from the string.
searches for the next lzh header.


Kenichi Ishigaki, <ishigaki@cpan.org>

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.