Table of Contents

Namespace Ionic.Zip

Classes

AddProgressEventArgs

Provides information about the progress of a Add operation.

BadCrcException

Issued when an CRC check fails upon extracting an entry from a zip archive.

BadPasswordException

Issued when an ZipEntry.ExtractWithPassword() method is invoked with an incorrect password.

BadReadException

Indicates that a read was attempted on a stream, and bad or incomplete data was received.

BadStateException

Indicates that an operation was attempted on a ZipFile which was not possible given the state of the instance. For example, if you call Save() on a ZipFile which has no filename set, you can get this exception.

ComHelper

This class exposes a set of COM-accessible wrappers for static methods available on the ZipFile class. You don't need this class unless you are using DotNetZip from a COM environment.

CountingStream

A decorator stream. It wraps another stream, and performs bookkeeping to keep track of the stream Position.

ExtractProgressEventArgs

Provides information about the progress of the extract operation.

FileAttributeHelper
FileSelector

FileSelector encapsulates logic that selects files from a source - a zip file or the filesystem - based on a set of criteria. This class is used internally by the DotNetZip library, in particular for the AddSelectedFiles() methods. This class can also be used independently of the zip capability in DotNetZip.

ReadOptions

A class for collecting the various options that can be used when Reading zip files for extraction or update.

ReadProgressEventArgs

Provides information about the progress of a Read operation.

SaveProgressEventArgs

Provides information about the progress of a save operation.

SfxGenerationException

Issued when errors occur saving a self-extracting archive.

ZipEntry

Represents a single entry in a ZipFile. Typically, applications get a ZipEntry by enumerating the entries within a ZipFile, or by adding an entry to a ZipFile.

ZipErrorEventArgs

Provides information about the an error that occurred while zipping.

ZipException

Base class for all exceptions defined by and throw by the Zip library.

ZipFile

The ZipFile type represents a zip archive file.

ZipInputStream

Provides a stream metaphor for reading zip files.

ZipOutputStream

Provides a stream metaphor for generating zip files.

ZipProgressEventArgs

Provides information about the progress of a save, read, or extract operation. This is a base class; you will probably use one of the classes derived from this one.

Enums

CompressionMethod

The method of compression to use for a particular ZipEntry.

EncryptionAlgorithm

An enum that provides the various encryption algorithms supported by this library.

ExtractExistingFileAction

An enum for the options when extracting an entry would overwrite an existing file.

Zip64Option

Options for using ZIP64 extensions when saving zip archives.

ZipEntrySource

An enum that specifies the source of the ZipEntry.

ZipEntryTimestamp

An enum that specifies the type of timestamp available on the ZipEntry.

ZipErrorAction

An enum providing the options when an error occurs during opening or reading of a file or directory that is being saved to a zip file.

ZipOption

An enum representing the values on a three-way toggle switch for various options in the library. This might be used to specify whether to employ a particular text encoding, or to use ZIP64 extensions, or some other option.

ZipProgressEventType

In an EventArgs type, indicates which sort of progress event is being reported.

Delegates

CloseDelegate

Delegate in which the application closes the stream, just-in-time, for the named entry.

OpenDelegate

Delegate in which the application opens the stream, just-in-time, for the named entry.

SetCompressionCallback

Delegate for the callback by which the application tells the library the CompressionLevel to use for a file.

WriteDelegate

Delegate in which the application writes the ZipEntry content for the named entry.