Share via


ZipFile.GetInputStream(ZipEntry) Method

Definition

Returns an input stream for reading the contents of the specified zip file entry.

[Android.Runtime.Register("getInputStream", "(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;", "GetGetInputStream_Ljava_util_zip_ZipEntry_Handler")]
public virtual System.IO.Stream? GetInputStream (Java.Util.Zip.ZipEntry? entry);
[<Android.Runtime.Register("getInputStream", "(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;", "GetGetInputStream_Ljava_util_zip_ZipEntry_Handler")>]
abstract member GetInputStream : Java.Util.Zip.ZipEntry -> System.IO.Stream
override this.GetInputStream : Java.Util.Zip.ZipEntry -> System.IO.Stream

Parameters

entry
ZipEntry

the zip file entry

Returns

the input stream for reading the contents of the specified zip file entry.

Attributes

Exceptions

if an IOException occurs.

if this zip file has been closed.

Remarks

Returns an input stream for reading the contents of the specified zip file entry.

Closing this ZIP file will, in turn, close all input streams that have been returned by invocations of this method.

Java documentation for java.util.zip.ZipFile.getInputStream(java.util.zip.ZipEntry).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to