ZipInputStream.NextEntry Property

Definition

Reads the next ZIP file entry and positions the stream at the beginning of the entry data.

public virtual Java.Util.Zip.ZipEntry? NextEntry { [Android.Runtime.Register("getNextEntry", "()Ljava/util/zip/ZipEntry;", "GetGetNextEntryHandler")] get; }
[<get: Android.Runtime.Register("getNextEntry", "()Ljava/util/zip/ZipEntry;", "GetGetNextEntryHandler")>]
member this.NextEntry : Java.Util.Zip.ZipEntry

Property Value

the next ZIP file entry, or null if there are no more entries

Attributes

Exceptions

if an IOException occurs.

Remarks

Reads the next ZIP file entry and positions the stream at the beginning of the entry data.

If the app targets Android U or above, zip file entry names containing ".." or starting with "/" passed here will throw a ZipException. For more details, see dalvik.system.ZipPathValidator.

Java documentation for java.util.zip.ZipInputStream.getNextEntry().

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