tango.util.compress.Zip

Members

Classes

ZipBlockReader
class ZipBlockReader

The ZipBlockReader class is used to parse a Zip archive. It exposes the contents of the archive via an iteration interface. For instance, to loop over all files in an archive, one can use either

ZipBlockWriter
class ZipBlockWriter

The ZipBlockWriter class is used to create a Zip archive. It uses a writing iterator interface.

ZipChecksumException
class ZipChecksumException

This exception is thrown if a ZipReader detects that a file's contents do not match the stored checksum.

ZipEntry
class ZipEntry

This class is used to represent a single entry in an archive. Specifically, it combines meta-data about the file (see the info field) along with the two basic operations on an entry: open and verify.

ZipException
class ZipException

This is the base class from which all exceptions generated by this module derive from.

ZipExhaustedException
class ZipExhaustedException

This exception is thrown if you call get reader method when there are no more files in the archive.

ZipNotSupportedException
class ZipNotSupportedException

This exception is thrown if you attempt to read an archive that uses features not supported by the reader.

Enums

Method
enum Method

This enumeration denotes the kind of compression used on a file.

Functions

createArchive
void createArchive(const(char)[] archive, Method method, const(char[])[] files)

/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////

extractArchive
void extractArchive(const(char)[] archive, const(char)[] dest)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

ZipReader
interface ZipReader

/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////

ZipWriter
interface ZipWriter

/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////

Structs

ZipEntryInfo
struct ZipEntryInfo

This structure contains various pieces of meta-data on a file. The contents of this structure may be safely mutated.

Meta

License

BSD style: $(LICENSE)

Version

Initial release: December 2007

Authors

Daniel Keep