Class ZipLibrary

This class provides zipping functions.

System.Object
  Stonefield.Library.ZipLibrary
public class ZipLibrary : object, IDisposable

Class Members

MemberDescription

Constructor

This constructor uses its own internal stream.

AddDirectory

Add all files in the specified directory and subdirectories to the zip contents.

public void AddDirectory(string directory,     string password)

public void AddDirectory(string directory,     string folder,     string password)

AddEntry

Add the contents of a stream to the zip contents.

public void AddEntry(Stream stream,     string fileName,     string password)

public void AddEntry(string fileName,     string password)

AddFile

Add the specified file to the specified folder of the archive.

public void AddFile(string fileName,     string folder,     string password)

Dispose

Disposes the object.

public sealed void Dispose()

GetZip

Gets the zip contents as a stream.

public Stream GetZip()

Requirements

Namespace: Stonefield.Library
Assembly: library.dll