Java.Util.Zip.ZipFile Class
This class provides random read access to a zip file.

See Also: ZipFile Members

Syntax

[Android.Runtime.Register("java/util/zip/ZipFile", DoNotGenerateAcw=true)]
public class ZipFile : Java.Lang.Object, Java.IO.ICloseable, IDisposable

Remarks

This class provides random read access to a zip file. You pay more to read the zip file's central directory up front (from the constructor), but if you're using ZipFile.GetEntry(string) to look up multiple files by name, you get the benefit of this index.

If you only want to iterate through all the files (using ZipFile.Entries, you should consider Java.Util.Zip.ZipInputStream, which provides stream-like read access to a zip file and has a lower up-front cost because you don't pay to build an in-memory index.

If you want to create a zip file, use Java.Util.Zip.ZipOutputStream. There is no API for updating an existing zip file.

[Android Documentation]

Requirements

Namespace: Java.Util.Zip
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1