Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

A BzipInput is an input filter that decompresses data compressed using the bzip2 algorithm.

The constructor accepts the input stream from which compressed data is read and optionally the small-flag, which cuts memory usage in half but doubles decompression time. This should only be used on machines that are really low on memory (8 MiB or less).

Currently, end of file handling is broken: a BzipClosedException is thrown instead of eof being reported properly. See ticket 1021.

Make sure you link in libbzip2 when building programs using BzipInputStream.