NAME
Archive::ZZip - Perl bindings for zziplib.
SYNOPSIS
use Archive::ZZip;
my $zip = Archive::ZZip->new("./latest.zip");
my $file = $dir->openFile("framework/dhtmlHistory.js");
while (my $buf = $file->read()) {
print $buf;
}
DESCRIPTION
Provides bindings for zziplib, whose homepage is at http://zziplib.sourceforge.net/.
METHODS
Archive::ZZip::new(file_name)
Opens the zip file. Returns a handle to the central directory.
my $zip = Archive::ZZip->new('test.zip');
Archive::ZZip::openFile(file_name)
Opens the file inside the zip. Returns a handle to the file.
my $file = $zip->openFile( 'test.zip');
Archive::ZZip::File::read(buffer, amount)
Attempts to read amount bytes and returns a buffer containing what was read. Pass undef for the buffer to have it automatically create one.
my $buf = $file->read(undef, 1024);
my $buf = $file->read();
$file->read($buf, 1024);
Archive::ZZip::read()
Returns the next entry in the central directory.
my $entry = $zip->read();
my $name = $entry->{'name'};
my $level = $entry->{'compression_level'};
my $us = $entry->{'uncompressed_size'};
my $cs = $entry->{'compressed_size'};
AUTHOR
Vincent Spader, <vspader@cpan.org>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.