28.1 Compress component

This component allows you to compress and decompress individual files.

The gb.compress component uses internally the 'libz' and 'libbz2' libraries, which must be installed on your system. All common (GNU) Linux distributions include packages for these libraries; FreeBSD and other Unix variants as well.

B1
Figure 28.1.1: Packing a file into an archive

In both Compress and Uncompress classes, properties, methods and events are available to use the specified algorithms to compress and decompress individual files, among other things. The use of the two classes is described in chapters 28.1.1 and 28.1.2 and implemented in two projects.