Class DiskArchiveStorage
An IArchiveStorage implementation suitable for hard disks.
Implements
Inherited Members
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public class DiskArchiveStorage : BaseArchiveStorage, IArchiveStorage
Constructors
| Improve this Doc View SourceDiskArchiveStorage(ZipFile)
Initializes a new instance of the DiskArchiveStorage class.
Declaration
public DiskArchiveStorage(ZipFile file)
Parameters
Type | Name | Description |
---|---|---|
ZipFile | file | The file. |
DiskArchiveStorage(ZipFile, FileUpdateMode)
Initializes a new instance of the DiskArchiveStorage class.
Declaration
public DiskArchiveStorage(ZipFile file, FileUpdateMode updateMode)
Parameters
Type | Name | Description |
---|---|---|
ZipFile | file | The file. |
FileUpdateMode | updateMode | The update mode. |
Methods
| Improve this Doc View SourceConvertTemporaryToFinal()
Converts a temporary System.IO.Stream to its final form.
Declaration
public override Stream ConvertTemporaryToFinal()
Returns
Type | Description |
---|---|
System.IO.Stream | Returns a System.IO.Stream that can be used to read the final storage for the archive. |
Overrides
| Improve this Doc View SourceDispose()
Disposes this instance.
Declaration
public override void Dispose()
Overrides
| Improve this Doc View SourceGetTemporaryOutput()
Gets a temporary output System.IO.Stream for performing updates on.
Declaration
public override Stream GetTemporaryOutput()
Returns
Type | Description |
---|---|
System.IO.Stream | Returns the temporary output stream. |
Overrides
| Improve this Doc View SourceMakeTemporaryCopy(Stream)
Make a temporary copy of a stream.
Declaration
public override Stream MakeTemporaryCopy(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The System.IO.Stream to copy. |
Returns
Type | Description |
---|---|
System.IO.Stream | Returns a temporary output System.IO.Stream that is a copy of the input. |
Overrides
| Improve this Doc View SourceOpenForDirectUpdate(Stream)
Return a stream suitable for performing direct updates on the original source.
Declaration
public override Stream OpenForDirectUpdate(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The current stream. |
Returns
Type | Description |
---|---|
System.IO.Stream | Returns a stream suitable for direct updating. |
Overrides
Remarks
If the stream
is not null this is used as is.