ZipFile.GetInputStream Method (Int32)

SharpZip Compression Library

SharpZip Compression Library

ZipFile.GetInputStream Method (Int32)

Creates an input stream reading a zip entry

public Stream GetInputStream(
   int entryIndex
);

Parameters

entryIndex
The index of the entry to obtain an input stream for.

Return Value

An input stream.

Exceptions

Exception Type Condition
InvalidOperationException The ZipFile has already been closed
ZipException The compression method for the entry is unknown
IndexOutOfRangeException The entry is not found in the ZipFile

See Also

ZipFile Class | ICSharpCode.SharpZipLib.Zip Namespace | ZipFile.GetInputStream Overload List