ZipFile.GetInputStream Method (Int64)

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

ZipFile.GetInputStream Method (Int64)

Creates an input stream reading a zip entry

public Stream GetInputStream(
   long 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