From 195ffa79674513645b746829f601f91410f5feba Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 29 Jul 2023 10:23:28 +0100 Subject: [PATCH] Add ZipInputStreamExtensions Similar to existing JarInputStreamExtensions. Signed-off-by: Graham --- .../kotlin/org/openrs2/util/io/ZipInputStreamExtensions.kt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 util/src/main/kotlin/org/openrs2/util/io/ZipInputStreamExtensions.kt diff --git a/util/src/main/kotlin/org/openrs2/util/io/ZipInputStreamExtensions.kt b/util/src/main/kotlin/org/openrs2/util/io/ZipInputStreamExtensions.kt new file mode 100644 index 0000000000..29f23f5603 --- /dev/null +++ b/util/src/main/kotlin/org/openrs2/util/io/ZipInputStreamExtensions.kt @@ -0,0 +1,7 @@ +package org.openrs2.util.io + +import java.util.zip.ZipEntry +import java.util.zip.ZipInputStream + +public val ZipInputStream.entries: Sequence + get() = generateSequence { nextEntry }