Public Member Functions | ||||
ZipEntry (string name) | ||||
Creates a zip entry with the given name. | ||||
ZipEntry (ZipEntry e) | ||||
Creates a copy of the given zip entry. | ||||
object | Clone () | |||
override string | ToString () | |||
Static Public Member Functions | ||||
static string | CleanName (string name, bool relativePath) | |||
Cleans a name making it conform to Zip file conventions. Devices names ('c:\') and UNC share names ('\server') are removed and forward slashes ('\') are converted to back slashes ('/'). | ||||
static string | CleanName (string name) | |||
| ||||
Properties | ||||
bool | IsCrypted | |||
Get/Set flag indicating if entry is encrypted. A simple helper routine to aid interpretation of Flagsflags. | ||||
int | Flags | |||
Get/Set general purpose bit flag for entry. | ||||
int | ZipFileIndex | |||
Get/Set index of this entry in Zip file. | ||||
int | Offset | |||
Get/set offset for use in central header. | ||||
int | ExternalFileAttributes | |||
Get/Set external file attributes as an integer. The values of this are operating system dependant see HostSystemHostSystem for details. | ||||
int | VersionMadeBy | |||
Get the version made by for this entry or zero if unknown. The value / 10 indicates the major version number, and the value mod 10 is the minor version number. | ||||
int | HostSystem | |||
Gets the compatability information for the ExternalFileAttributesexternal file attribute If the external file attributes are compatible with MS-DOS and can be read by PKZIP for DOS version 2.04g then this value will be zero. Otherwise the value will be non-zero and identify the host system on which the attributes are compatible. | ||||
int | Version | |||
Get minimum Zip feature version required to extract this entry. | ||||
bool | RequiresZip64 | |||
Gets a value indicating if the entry requires Zip64 extensions to be stored. | ||||
long | DosTime | |||
Get/Set DosTime. | ||||
DateTime | DateTime | |||
Gets/Sets the time of last modification of the entry. | ||||
string | Name | |||
Returns the entry name. The path components in the entry should always separated by slashes ('/'). Dos device names like C: should also be removed. See CleanNameCleanName. | ||||
long | Size | |||
| ||||
long | CompressedSize | |||
| ||||
long | Crc | |||
| ||||
CompressionMethod | CompressionMethod | |||
ICSharpCode::SharpZipLib::Zip::CompressionMethod::Stored | ||||
byte[] | ExtraData | |||
| ||||
string | Comment | |||
| ||||
bool | IsDirectory | |||
bool | IsFile | |||
Private Member Functions | ||||
internal | ZipEntry (string name, int versionRequiredToExtract) | |||
Creates a zip entry with the given name and version required to extract. | ||||
internal | ZipEntry (string name, int versionRequiredToExtract, int madeByInfo) | |||
Initializes an entry with the given name and made by information. | ||||
Private Attributes | ||||
ushort | known = 0 | |||
int | externalFileAttributes = -1 | |||
ushort | versionMadeBy | |||
string | name | |||
ulong | size | |||
ulong | compressedSize | |||
ushort | versionToExtract | |||
uint | crc | |||
uint | dosTime | |||
CompressionMethod | method = CompressionMethod.Deflated | |||
byte[] | extra = null | |||
string | comment = null | |||
int | flags | |||
int | zipFileIndex = -1 | |||
int | offset | |||
Static Private Attributes | ||||
static int | KNOWN_SIZE = 1 | |||
static int | KNOWN_CSIZE = 2 | |||
static int | KNOWN_CRC = 4 | |||
static int | KNOWN_TIME = 8 | |||
static int | KNOWN_EXTERN_ATTRIBUTES = 16 |
Definition at line 55 of file ZipEntry.cs.
|
Creates a zip entry with the given name.
Definition at line 251 of file ZipEntry.cs. |
|
Creates a zip entry with the given name and version required to extract.
Definition at line 270 of file ZipEntry.cs. |
|
Initializes an entry with the given name and made by information.
This constructor is used by the ZipFile class when reading from the central header It is not generally useful, use the constructor specifying the name only. Definition at line 290 of file ZipEntry.cs. |
|
Creates a copy of the given zip entry.
Definition at line 316 of file ZipEntry.cs. References comment, compressedSize, crc, dosTime, externalFileAttributes, ExtraData, flags, known, method, name, size, versionMadeBy, and versionToExtract. |
|
Definition at line 490 of file ZipEntry.cs. |
|
Cleans a name making it conform to Zip file conventions. Devices names ('c:\') and UNC share names ('\server') are removed and forward slashes ('\') are converted to back slashes ('/').
Definition at line 456 of file ZipEntry.cs. |
|
Definition at line 720 of file ZipEntry.cs. |
|
Definition at line 728 of file ZipEntry.cs. |
|
Definition at line 78 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 71 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 73 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 74 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 64 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 77 of file ZipEntry.cs. |
|
Definition at line 80 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 63 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 59 of file ZipEntry.cs. |
|
Definition at line 58 of file ZipEntry.cs. |
|
Definition at line 61 of file ZipEntry.cs. |
|
Definition at line 57 of file ZipEntry.cs. |
|
Definition at line 60 of file ZipEntry.cs. |
|
Definition at line 76 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 69 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 83 of file ZipEntry.cs. |
|
Definition at line 70 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 66 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 72 of file ZipEntry.cs. Referenced by ZipEntry(). |
|
Definition at line 82 of file ZipEntry.cs. |
|
Definition at line 661 of file ZipEntry.cs. |
|
Definition at line 526 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipOutputStream::PutNextEntry(). |
|
|
|
Gets/Sets the time of last modification of the entry.
Definition at line 411 of file ZipEntry.cs. |
|
Get/Set DosTime.
Definition at line 393 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipFile::CheckClassicPassword(), ICSharpCode::SharpZipLib::Zip::ZipFile::CreateAndInitEncryptionStream(), and ICSharpCode::SharpZipLib::Zip::ZipOutputStream::PutNextEntry(). |
|
Get/Set external file attributes as an integer. The values of this are operating system dependant see HostSystemHostSystem for details.
Definition at line 171 of file ZipEntry.cs. |
|
Definition at line 587 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipOutputStream::PutNextEntry(), and ZipEntry(). |
|
Get/Set general purpose bit flag for entry.
General purpose bit flag Definition at line 128 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipFile::CheckClassicPassword(), ICSharpCode::SharpZipLib::Zip::ZipFile::CreateAndInitDecryptionStream(), ICSharpCode::SharpZipLib::Zip::ZipFile::CreateAndInitEncryptionStream(), ICSharpCode::SharpZipLib::Zip::ZipOutputStream::PutNextEntry(), and ICSharpCode::SharpZipLib::Zip::ZipFile::TestLocalHeader(). |
|
Gets the compatability information for the ExternalFileAttributesexternal file attribute If the external file attributes are compatible with MS-DOS and can be read by PKZIP for DOS version 2.04g then this value will be zero. Otherwise the value will be non-zero and identify the host system on which the attributes are compatible. The values for this as defined in the Zip File format and by others are shown below. The values are somewhat misleading in some cases as they are not all used as shown. You should consult the relevant documentation to obtain up to date and correct information. The modified appnote by the infozip group is particularly helpful as it documents a lot of peculiarities. The document is however a little dated.
Definition at line 235 of file ZipEntry.cs. |
|
Get/Set flag indicating if entry is encrypted. A simple helper routine to aid interpretation of Flagsflags.
Definition at line 89 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipFile::GetOutputStream(), and ICSharpCode::SharpZipLib::Zip::ZipOutputStream::PutNextEntry(). |
|
Definition at line 682 of file ZipEntry.cs. |
|
Definition at line 703 of file ZipEntry.cs. |
|
Returns the entry name. The path components in the entry should always separated by slashes ('/'). Dos device names like C: should also be removed. See CleanNameCleanName.
Definition at line 443 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipFile::CreateAndInitDecryptionStream(), ICSharpCode::SharpZipLib::Zip::ZipFile::CreateAndInitEncryptionStream(), ICSharpCode::SharpZipLib::Zip::FastZip::ExtractEntry(), ICSharpCode::SharpZipLib::Zip::FastZip::ExtractZip(), ICSharpCode::SharpZipLib::Zip::ZipFile::GetInputStream(), ICSharpCode::SharpZipLib::Zip::ZipOutputStream::PutNextEntry(), and ICSharpCode::SharpZipLib::Zip::ZipFile::TestLocalHeader(). |
|
Get/set offset for use in central header.
Definition at line 153 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipOutputStream::PutNextEntry(), and ICSharpCode::SharpZipLib::Zip::ZipFile::TestLocalHeader(). |
|
Gets a value indicating if the entry requires Zip64 extensions to be stored.
Definition at line 384 of file ZipEntry.cs. |
|
Definition at line 504 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipOutputStream::PutNextEntry(). |
|
Get minimum Zip feature version required to extract this entry.
Minimum features are defined as: Definition at line 361 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipFile::CreateAndInitDecryptionStream(), ICSharpCode::SharpZipLib::Zip::ZipFile::CreateAndInitEncryptionStream(), and ICSharpCode::SharpZipLib::Zip::ZipOutputStream::PutNextEntry(). |
|
Get the version made by for this entry or zero if unknown. The value / 10 indicates the major version number, and the value mod 10 is the minor version number.
Definition at line 191 of file ZipEntry.cs. |
|
Get/Set index of this entry in Zip file.
Definition at line 141 of file ZipEntry.cs. Referenced by ICSharpCode::SharpZipLib::Zip::ZipFile::GetInputStream(). |