C# Class ICSharpCode.SharpZipLib.Zip.DiskArchiveStorage

An IArchiveStorage implementation suitable for hard disks.
Inheritance: BaseArchiveStorage
Show file Open project: fanfeilong/exceltk Class Usage Examples

Public Methods

Method Description
ConvertTemporaryToFinal ( ) : Stream

Converts a temporary Stream to its final form.

DiskArchiveStorage ( ZipFile file ) : System

Initializes a new instance of the DiskArchiveStorage class.

DiskArchiveStorage ( ZipFile file, FileUpdateMode updateMode ) : System

Initializes a new instance of the DiskArchiveStorage class.

Dispose ( ) : void

Disposes this instance.

GetTemporaryOutput ( ) : Stream

Gets a temporary output Stream for performing updates on.

MakeTemporaryCopy ( Stream stream ) : Stream

Make a temporary copy of a stream.

OpenForDirectUpdate ( Stream stream ) : Stream

Return a stream suitable for performing direct updates on the original source.

If the stream is not null this is used as is.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
GetTempFileName ( string original, bool makeTempFile ) : string

Method Details

ConvertTemporaryToFinal() public method

Converts a temporary Stream to its final form.
public ConvertTemporaryToFinal ( ) : Stream
return Stream

DiskArchiveStorage() public method

Initializes a new instance of the DiskArchiveStorage class.
public DiskArchiveStorage ( ZipFile file ) : System
file ZipFile The file.
return System

DiskArchiveStorage() public method

Initializes a new instance of the DiskArchiveStorage class.
public DiskArchiveStorage ( ZipFile file, FileUpdateMode updateMode ) : System
file ZipFile The file.
updateMode FileUpdateMode The update mode.
return System

Dispose() public method

Disposes this instance.
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetTemporaryOutput() public method

Gets a temporary output Stream for performing updates on.
public GetTemporaryOutput ( ) : Stream
return Stream

MakeTemporaryCopy() public method

Make a temporary copy of a stream.
public MakeTemporaryCopy ( Stream stream ) : Stream
stream Stream The to copy.
return Stream

OpenForDirectUpdate() public method

Return a stream suitable for performing direct updates on the original source.
If the stream is not null this is used as is.
public OpenForDirectUpdate ( Stream stream ) : Stream
stream Stream The current stream.
return Stream