[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.43 Compressed files

Procedures for compressed files (zip, gzip).


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.43.1 zip files

Function: open-zip-file filename

opens the zip file.

Function: zip-file-entry zip-file entry-name

gets file entry objects which corresponds with entries of the given zip file.

Function: zip-file-entries zip-file

gets all entries in the zip files.

Function: zip-entry-comment zip-entry
Function: zip-entry-compressed-size zip-entry
Function: zip-entry-crc zip-entry
Function: zip-entry-method zip-entry
Function: zip-entry-name zip-entry
Function: zip-entry-size zip-entry
Function: zip-entry-time zip-entry

gets a comment of the zip file, compressed size, CRC, compressing method(symbol deflated or stored), name and uncompressed size and timestamp(SRFI-19 format), respectively.

Function: zip-file-input-port zip-file zip-entry buffer-mode transcoder

creates an input port to access the zip entry.
buffer-mode and transcoder specifies the R6RS buffer mode and transcoder, respectively. If trancoder is #f, a port to be created will be a binary port.


[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.43.2 gzip files

Function: gzip-file-input-port filepath file-options buffer-mode transcoder

creates an input port for the gzipped file.
buffer-mode and transcoder specifies the R6RS buffer mode and transcoder, respectively. If trancoder is #f, a port to be created will be a binary port.

Function: gzip-file-output-port filepath file-options buffer-mode transcoder

creates an output port for the gzipped file.
buffer-mode and transcoder specifies the R6RS buffer mode and transcoder, respectively. If trancoder is #f, a port to be created will be a binary port.


[ << ] [ < ] [ Up ] [ > ] [ >> ]

This document was generated on August 9, 2012 using texi2html 5.0.