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