C# Class ICSharpCode.SharpZipLib.Zip.MemoryArchiveStorage

Inheritance: BaseArchiveStorage
Show file Open project: fanfeilong/exceltk

Public Methods

Method Description
ConvertTemporaryToFinal ( ) : Stream

Converts the temporary Stream to its final form.

Dispose ( ) : void

Disposes this instance.

GetTemporaryOutput ( ) : Stream

Gets the temporary output Stream

MakeTemporaryCopy ( Stream stream ) : Stream

Make a temporary copy of the original stream.

MemoryArchiveStorage ( ) : System

Initializes a new instance of the MemoryArchiveStorage class.

MemoryArchiveStorage ( FileUpdateMode updateMode ) : System

Initializes a new instance of the MemoryArchiveStorage class.

This constructor is for testing as memory streams dont really require safe mode.

OpenForDirectUpdate ( Stream stream ) : Stream

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

If the stream passed is not null this is used; otherwise a new MemoryStream is returned.

Method Details

ConvertTemporaryToFinal() public method

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

Dispose() public method

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

GetTemporaryOutput() public method

Gets the temporary output Stream
public GetTemporaryOutput ( ) : Stream
return Stream

MakeTemporaryCopy() public method

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

MemoryArchiveStorage() public method

Initializes a new instance of the MemoryArchiveStorage class.
public MemoryArchiveStorage ( ) : System
return System

MemoryArchiveStorage() public method

Initializes a new instance of the MemoryArchiveStorage class.
This constructor is for testing as memory streams dont really require safe mode.
public MemoryArchiveStorage ( FileUpdateMode updateMode ) : System
updateMode FileUpdateMode The to use
return System

OpenForDirectUpdate() public method

Return a stream suitable for performing direct updates on the original source.
If the stream passed is not null this is used; otherwise a new MemoryStream is returned.
public OpenForDirectUpdate ( Stream stream ) : Stream
stream Stream The original source stream
return Stream