.NET Components
Chilkat .NET Components for Email, Zip Compression, Encryption, XML, S/MIME, and Character Encoding Conversion

BACK

Chilkat::ZipEntry Class

Represents a single file or directory entry within a Chilkat.Zip object.

Base Classes: Object
  Properties Description  
    Comment The comment stored within the Zip for this entry.

 
    CompressedLength The size of this file when Zip compression is applied

 
    CompressionLevel The compression level. 0 = no compression, while 9 = maximum compression. The default is 6.

 
    CompressionMethod Set to 0 for no compression, or 8 for the Deflate algorithm. The Deflate algorithm is the default algorithm of the most popular Zip utility programs, such as WinZip

 
    EntryID The unique ID assigned by Zip.NET while the object is instantiated in memory.

 
    EntryType Indicates the origin of the entry. There are three possible values: (0) a file on disk referenced by Zip.NET and to be added to the Zip, (1) an entry in an existing Zip file, and (2) an entry created directly from data in memory.

 
    FileDateTime The last-modified time of the Zip entry.

 
    FileName The file name of the Zip entry.

 
    IsDirectory True if the Zip entry is a directory, false if it is a file.

 
    LastError An XML-formatted string containing error information, if any, of the last method call.

 
    UncompressedLength The size in bytes of the Zip entry when uncompressed.

 
  Methods Description  
    AppendData Append text or binary data to a file within a Zip archive

 
    CopyToBase64 Returns the compressed data as a Base64-encoded string. This data can be re-added to a Zip by calling Zip.AppendBase64.

 
    CopyToHex Returns the compressed data as a hexidecimal encoded string. This data can be re-added to a Zip by calling Zip.AppendHex.

 
    ExtractInto Unzip a file into a specific directory

 
    Extract Unzips this entry into the specified base directory. The file is unzipped to the subdirectory according to the relative path stored with the entry in the Zip. Use ExtractInto to unzip into a specific directory regardless of the path information stored in the Zip.

 
    GetCompressedData Return the binary compressed data for a file within a Zip

 
    InflateToString Inflate and return the uncompressed data as a string. Line-endings are modified to include or not include carriage-returns based on KeepCR. If KeepCR = False, then bare linefeeds are returned, otherwise CRLFs are returned.

 
    InflateToString2 Unzip a file directly into memory as a string, and leave line-endings unmodified.

 
    Inflate Inflate a file within a Zip directly into memory.

 
    NextEntry Return the next entry (file or directory) within the Zip

 
    ReplaceData Replace the contents of a file within a Zip archive

 
    SaveLastError Saves the error log to an XML log file

 

Copyright 2002, Chilkat Software, Inc. All Rights Reserved.