|
|
|
@ -292,7 +292,7 @@ interface JsExtensions { |
|
|
|
|
val bos = ByteArrayOutputStream() |
|
|
|
|
val zis = ZipInputStream(ByteArrayInputStream(bytes)) |
|
|
|
|
|
|
|
|
|
var entry: ZipEntry = zis.nextEntry |
|
|
|
|
var entry: ZipEntry? = zis.nextEntry |
|
|
|
|
|
|
|
|
|
while (entry != null) { |
|
|
|
|
if (entry.name.equals(path)) { |
|
|
|
@ -319,7 +319,7 @@ interface JsExtensions { |
|
|
|
|
val bos = ByteArrayOutputStream() |
|
|
|
|
val zis = ZipInputStream(ByteArrayInputStream(bytes)) |
|
|
|
|
|
|
|
|
|
var entry: ZipEntry = zis.nextEntry |
|
|
|
|
var entry: ZipEntry? = zis.nextEntry |
|
|
|
|
while (entry != null) { |
|
|
|
|
if (entry.name.equals(path)) { |
|
|
|
|
zis.use { it.copyTo(bos) } |
|
|
|
|