ArchiveItem Class
Namespace: Rebex.IO.Compression
Assembly: Rebex.Zip.dll (version 7.0.9119)
Represents an item (file or directory) within an archive.
Syntax
public abstract class ArchiveItem : FileSystemItem
Inherited Members
Properties
Name | Description |
---|---|
CanExtract | Returns true if the item can be extracted using Rebex ZIP for .NET component. |
Comment | Gets or sets the comment of the item. |
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 (returns 0 for directories). |
CreationTime | Gets or sets the creation time attribute of the item. |
EncryptionAlgorithm | Gets the name of the algorithm used to encrypt the current ZipItem. |
IsDeleted | Gets a value indicating whether the current ArchiveItem represents a deleted item. |
IsDirectory | Gets a value indicating whether the item is a directory. Inherited from FileSystemItem. |
IsEmptyDirectory | Gets a value indicating whether the ArchiveItem is an empty directory. |
IsEncrypted | Gets a value indicating whether the current ZipItem is encrypted. |
IsFile | Gets a value indicating whether the item is a file. Inherited from FileSystemItem. |
IsLink | Gets a value indicating whether the item is a link. |
IsRootDirectory | Gets a value indicating whether the current ArchiveItem is the root directory of the archive. |
ItemType | Gets the type of the item. |
LastAccessTime | Gets or sets the last access time attribute of the item. |
LastWriteTime | Gets or sets the last modification time attribute of the item. |
Length | Gets uncompressed file length. |
Name | Gets the name of the file or directory. Inherited from FileSystemItem. |
Path | Gets the path of the file or directory. It can be relative or absolute path depending on the way of use. Inherited from FileSystemItem. |
Methods
Name | Description |
---|---|
Delete() | Deletes the current file or empty directory item from the archive. |
Delete(ArchiveSaveAction) | Deletes the current file or empty directory item from the archive. |
Delete(TraversalMode, ArchiveSaveAction) | Deletes the current item from the archive. |
ExtractToArray() | Extracts the current file item into a byte array. |
ExtractToDirectory(String) | Extracts the current item into the specified directory. |
ExtractToDirectory(String, TraversalMode, ActionOnExistingFiles) | Extracts the current item into the specified local directory using the specified arguments. |
ExtractToFile(String) | Extracts the current file item into a local file. |
ExtractToStream(Stream) | Extracts the current file item to the specified stream. |
GetCreationTime() | Gets the creation time attribute of the item. |
GetLastAccessTime() | Gets the last access time attribute of the item. |
GetLastWriteTime() | Gets the last modification time attribute of the item. |
Open() | Returns an initialized read-only non-seekable stream to read the decompressed data of the current item. |
Open(String) | Returns an initialized read-only non-seekable stream to read the decompressed data of the current item. |
Rename(String) | Renames the current item. |
ToString() | Returns a System.String that represents the current item. |