Table of Contents

TZippyWriter Class

Simple class for writing to a zip file. It can compress on the fly as you are generating the file.

Syntax

Namespace: FlexCel.Core

public class TZippyWriter: IDisposable

Constructors

Name Description
TZippyWriter Creates a new TZippyWriter object.

Methods

Name Description
Close Finalizes the zip file, by writing the final headers. You normally don't need to call this method, since it will be called automatically when you destroy the object.
CreateZip Overloaded
CreateZip(String)
CreateZip(Stream, Boolean)
Add Overloaded
Add(String)
Add(String, TCompressionMode)
Add(String, DateTime, TCompressionMode)
AddFile Adds an existing file to the zip file.
AddStream Adds an existing stream to the zip file. Note that this method will add the data of an existing stream, if you want to get a stream where you can write data and it will be added on the fly to the zip file, use Add(​String) instead.
GetCompressionMode Returns the compression mode for a file name. This method is used when you don't specify a compression mode or it is cmAutomatic.
Dispose Overloaded
Dispose
Dispose(Boolean)