zlib



The zlib Mosel module is an interface to the zlib compression library by Jean-Loup Gailly and Mark Adler (http://zlib.net). Thanks to two IO drivers it makes possible the creation and use of compressed files from Mosel models.

I/O drivers

The following two drivers behave the same: a stream open for reading is decompressed and a stream open for writing is created compressed. Both drivers are also based on the same compression algorithm (deflate) but use different container formats.

Driver gzip

gzip:filename

This driver handles files compressed using the gzip compression format: this corresponds to files created using the gzip compression tool.

For instance the following statement decompresses the file myfile.gz":

fcopy("zlib.gzip:myfile.gz","myfile")

Driver deflate

deflate:filename

This driver handles files compressed using the zlib compression format. This driver can read documents compressed by gzip but compressed files it generates are not compatible with this tool.



If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.