A library to read/write zip archive file.
- Gauche 0.9.5 pre1 or later
Install Building from tarball
% ./configure
% make install
For windows without MSYS
> install.bat
This library name is zip-archive. Use it at first.
(use zip-archive)
Procedures that this library provides is two categories with roughly. That is writing and reading.
Takes a string
naming an output zip archive to be created and returns an output-zip-archive object.
Finanize the archive associated with output-zip-archive
.
Write entry that named string1
into the file associated output-zip-archive
.
The content of the entry is string2
.
This is a generic function.
If you want to store an object other than string, be able to define a method.
Open output zip archive that named string
to write and call proc
with output-zip-archive object.
proc
must receive one argument.
The output-zip-archive object is closed automatically after return from proc
.
This procedure return #t if obj
is output-zip-archive object.
Otherwise this return #f.
Takes a string
naming an input zip archive to be created and returns a input-zip-archive object.
input-zip-archive class is iherited <collection>
class.
You can handle this as if it were a collection that contains the entry objects.
See gauche.collection.
Close the archive associated with input-zip-archive
.
Open the zip archive that named string
for reading and call proc with input-zip-archive object.
proc
must receive one argument.
The input-zip-archive object is closed automatically after return from proc
.
Returns a list of entry objects in the input-zip-archive
.
input-zip-archive object is collection. You should not take entries from input-zip-archive object explicitly by zip-entries.
Returns timestamp of zip-entry
as a date object.
Returns uncompressed size of content in zip-entry
.
A size of the content is a number of bytes.
Returns filename of zip-entry
.
Inflate content of zip-entry
and returns it as a string.