Show / Hide Table of Contents

Class DiskArchiveStorage

An IArchiveStorage implementation suitable for hard disks.

Inheritance
System.Object
BaseArchiveStorage
DiskArchiveStorage
Implements
IArchiveStorage
Inherited Members
BaseArchiveStorage.UpdateMode
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public class DiskArchiveStorage : BaseArchiveStorage, IArchiveStorage

Constructors

| Improve this Doc View Source

DiskArchiveStorage(ZipFile)

Initializes a new instance of the DiskArchiveStorage class.

Declaration
public DiskArchiveStorage(ZipFile file)
Parameters
Type Name Description
ZipFile file

The file.

| Improve this Doc View Source

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 Source

ConvertTemporaryToFinal()

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
BaseArchiveStorage.ConvertTemporaryToFinal()
| Improve this Doc View Source

Dispose()

Disposes this instance.

Declaration
public override void Dispose()
Overrides
BaseArchiveStorage.Dispose()
| Improve this Doc View Source

GetTemporaryOutput()

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
BaseArchiveStorage.GetTemporaryOutput()
| Improve this Doc View Source

MakeTemporaryCopy(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
BaseArchiveStorage.MakeTemporaryCopy(Stream)
| Improve this Doc View Source

OpenForDirectUpdate(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
BaseArchiveStorage.OpenForDirectUpdate(Stream)
Remarks

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

Implements

IArchiveStorage
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2000-2022 SharpZipLib Contributors