C# Class ICSharpCode.SharpZipLib.Zip.DiskArchiveStorage

An IArchiveStorage implementation suitable for hard disks.
Inheritance: BaseArchiveStorage
Afficher le fichier Open project: fanfeilong/exceltk Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
GetTempFileName ( string original, bool makeTempFile ) : string

Method Details

ConvertTemporaryToFinal() public méthode

Converts a temporary Stream to its final form.
public ConvertTemporaryToFinal ( ) : Stream
Résultat Stream

DiskArchiveStorage() public méthode

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

DiskArchiveStorage() public méthode

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

Dispose() public méthode

Disposes this instance.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetTemporaryOutput() public méthode

Gets a temporary output Stream for performing updates on.
public GetTemporaryOutput ( ) : Stream
Résultat Stream

MakeTemporaryCopy() public méthode

Make a temporary copy of a stream.
public MakeTemporaryCopy ( Stream stream ) : Stream
stream Stream The to copy.
Résultat Stream

OpenForDirectUpdate() public méthode

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.
Résultat Stream