ZipReader Class
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
Class for reading and extracting ZIP files sequentially, supporting non-seekable streams.
Syntax
public class ZipReader : IDisposable
Implements
Inherited Members
Constructors
| Name | Description |
|---|---|
| ZipReader(Stream) | Initializes a ZipReader object with the specified ZIP archive stream. |
| ZipReader(Stream, ArchiveStreamCloseMode) | Initializes a ZipReader object with the specified ZIP archive stream. |
| ZipReader(String) | Initializes a ZipReader object with the specified ZIP archive. |
Properties
| Name | Description |
|---|---|
| CanExtract | Returns true if the currently read item can be extracted using Rebex ZIP for .NET component. |
| CompressedLength | Gets compressed file length. |
| CompressionMethod | Gets the compression method used to compress the file. |
| Crc32 | Gets the CRC32 (Cyclic Redundancy Check) value of the file. |
| CreationTime | Gets or sets the creation time attribute of the currently read item. |
| EncryptionAlgorithm | Gets the name of the algorithm used to encrypt the currently read item. |
| IsDirectory | Gets a value indicating whether the currently read item is a directory. |
| IsEncrypted | Gets a value indicating whether the currently read item is encrypted. |
| IsFile | Gets a value indicating whether the currently read item is a file. |
| IsLink | Gets a value indicating whether the item is a link. |
| ItemType | Gets the type of the currently read item. |
| LastAccessTime | Gets or sets the last access time attribute of the currently read item. |
| LastWriteTime | Gets or sets the last modification time attribute of the currently read item. |
| Length | Gets uncompressed file length. |
| Name | Gets the name of the currently read item. |
| Password | Gets or sets a password to be used when extracting the file. |
| Path | Gets the full path to the currently read item (including its name) within the ZIP archive. |
Methods
| Name | Description |
|---|---|
| Close() | Releases all resources used by the current ZipReader. |
| Dispose(Boolean) | Releases the unmanaged resources used by the ZipReader and optionally releases the managed resources. |
| Extract(Stream) | Extracts the current file item to the specified stream. |
| Extract(String) | Extracts the current file item into a local file. |
| Extract(String, ActionOnExistingFiles) | Extracts the current file item into a local file. |
| GetStream() | Gets a read-only stream for reading the uncompressed data of the current file. |
| ReadNext() | Reads next item from the ZIP archive. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IDisposable.Dispose() | Releases all resources used by the current ZipReader. |