Click or drag to resize
DigitalRuneZipStorage Class
Provides access to the files stored in a ZIP archive.
Inheritance Hierarchy

Namespace: DigitalRune.Storages
Assembly: DigitalRune (in DigitalRune.dll) Version: 1.20.0.0 (1.20.1.14552)
Syntax
public class ZipStorage : Storage, IStorageInternal

The ZipStorage type exposes the following members.

Constructors
  NameDescription
Public methodZipStorage
Initializes a new instance of the ZipStorage class.
Top
Methods
  NameDescription
Public methodDispose
Releases all resources used by an instance of the Storage class.
(Inherited from Storage.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by an instance of the ZipStorage class and optionally releases the managed resources.
(Overrides StorageDispose(Boolean).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetRealPath
Gets the real path and name of the specified file.
(Overrides StorageGetRealPath(String).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpenFile
Opens the specified file for reading.
(Overrides StorageOpenFile(String).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Protected propertyDirectorySeparator
Gets the directory separator character used natively by this storage.
(Overrides StorageDirectorySeparator.)
Public propertyFileName
Gets the file name (incl. path) of the ZIP archive.
Public propertyIsDisposed
Gets a value indicating whether this instance has been disposed of.
(Inherited from Storage.)
Public propertyPasswordCallback
Gets or sets the callback method that provides the password for encrypted ZIP file entries.
Public propertyStorage
Gets the storage that provides the ZIP archive.
Top
Remarks

The ZipStorage does not directly read the ZIP archive from the OS file system. Instead, it opens the ZIP archive from another storage.

The PasswordCallback needs to be set to read encrypted ZIP archives. The ZipStorage supports ZipCrypto (all platforms) and AES-256 encryption (Windows only).

Thread-Safety: The ZipStorage is thread-safe. ZIP entries can be read simultaneously from one or multiple threads.

See Also