Show / Hide Table of Contents

Class BaseArchiveStorage

An abstract IArchiveStorage suitable for extension by inheritance.

Inheritance
System.Object
BaseArchiveStorage
DiskArchiveStorage
MemoryArchiveStorage
Implements
IArchiveStorage
Inherited Members
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 abstract class BaseArchiveStorage : IArchiveStorage

Constructors

| Improve this Doc View Source

BaseArchiveStorage(FileUpdateMode)

Initializes a new instance of the BaseArchiveStorage class.

Declaration
protected BaseArchiveStorage(FileUpdateMode updateMode)
Parameters
Type Name Description
FileUpdateMode updateMode

The update mode.

Properties

| Improve this Doc View Source

UpdateMode

Gets the update mode applicable.

Declaration
public FileUpdateMode UpdateMode { get; }
Property Value
Type Description
FileUpdateMode

The update mode.

Methods

| Improve this Doc View Source

ConvertTemporaryToFinal()

Converts the temporary System.IO.Stream to its final form.

Declaration
public abstract 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.

See Also
GetTemporaryOutput()
| Improve this Doc View Source

Dispose()

Disposes this instance.

Declaration
public abstract void Dispose()
| Improve this Doc View Source

GetTemporaryOutput()

Gets a temporary output System.IO.Stream

Declaration
public abstract Stream GetTemporaryOutput()
Returns
Type Description
System.IO.Stream

Returns the temporary output stream.

See Also
ConvertTemporaryToFinal()
| Improve this Doc View Source

MakeTemporaryCopy(Stream)

Make a temporary copy of a System.IO.Stream.

Declaration
public abstract Stream MakeTemporaryCopy(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream

The System.IO.Stream to make a copy of.

Returns
Type Description
System.IO.Stream

Returns a temporary output System.IO.Stream that is a copy of the input.

| Improve this Doc View Source

OpenForDirectUpdate(Stream)

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

Declaration
public abstract Stream OpenForDirectUpdate(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream

The System.IO.Stream to open for direct update.

Returns
Type Description
System.IO.Stream

Returns a stream suitable for direct updating.

Implements

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