ZipFile Members

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

ZipFile Members

ZipFile overview

Public Static Methods

CreateOverloaded. Create a new ZipFile whose data will be stored in a file.

Public Instance Constructors

ZipFile Overloaded. Initializes a new instance of the ZipFile class.

Public Instance Fields

KeysRequired Event handler for handling encryption keys.

Public Instance Properties

BufferSize Get /set the buffer size to be used when updating this zip file.
Count Get the number of entries contained in this ZipFile.
EntryByIndex Indexer property for ZipEntries
IsEmbeddedArchive Get a value indicating wether this archive is embedded in another file or not.
IsNewArchive Get a value indicating that this archive is a new one.
IsStreamOwner Get/set a flag indicating if the underlying stream is owned by the ZipFile instance. If the flag is true then the stream will be closed when Close is called.
IsUpdating Get a value indicating an update has been started.
Name Gets the name of this zip file.
NameTransform Get / set the INameTransform to apply to names when updating.
Password Password to be used for encrypting/decrypting files.
SizeObsolete. Gets the number of entries in this zip file.
UseZip64 Get / set a value indicating how Zip64 Extension usage is determined when adding entries.
ZipFileComment Gets the comment for the zip file.

Public Instance Methods

AbortUpdate Abort updating leaving the archive unchanged.
AddOverloaded. Add a new entry to the archive.
AddDirectory Add a directory entry to the archive.
BeginUpdateOverloaded. Begin updating this ZipFile archive.
Close Closes the ZipFile. If the stream is owned then this also closes the underlying input stream. Once closed, no further instance methods should be called.
CommitUpdate Commit current updates, updating this archive.
DeleteOverloaded. Delete an entry by name
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
FindEntry Return the index of the entry with a matching name
GetEntry Searches for a zip entry in this archive with the given name. String comparisons are case insensitive
GetEnumerator Returns an enumerator for the Zip entries in this Zip file.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetInputStreamOverloaded. Creates an input stream reading the given zip entry as uncompressed data. Normally zip entry should be an entry returned by GetEntry().
GetType (inherited from Object) Gets the Type of the current instance.
SetComment Set the file comment to be recorded when the current update is commited.
TestArchiveOverloaded. Test an archive for integrity/validity
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Dispose Releases the unmanaged resources used by the this instance and optionally releases the managed resources.
Finalize Finalize this instance.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

ZipFile Class | ICSharpCode.SharpZipLib.Zip Namespace