Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


EZLib overview

Purpose

EZLib is a compression library provided by Symbian for compressing and decompressing memory streams, files, and file archives. It based on Version 1.2.3 of the Zlib library. Zlib is written in C and hence exports C interface. EZLib provides C++ wrapper classes that encapsulate the functionality of Zlib.

Description

EZLib library provides the following functionalities:

Memory streams can be compressed or decompressed in a single step or in multiple steps until the task is complete. This interface is provided by the CEZCompressor and CEZDecompressor classes .

Compression and decompression can be performed on two file formats, namely, Zip and GZip. The files passed as input are converted into memory streams and managed internally. The client needs to pass the compression/decompression parameters along with the input/output file. For more details see Compression and decompression of files.

EZLib does not provide an interface to compress files to an archive. Decompression of file archives is provided by the interface CZipFile. The CZipFile class represents a zip archive contained in a single file. Multi file zip archives are not supported.

Clients can use the CZipFileMemberIterator class to iterate through the entries in the archive, and to get entry properties in CZipFileMember objects. The RZipFileMemberReaderStream class is used to read the properties of each file.For more details, see Decompression of file archive.