fix: set marklimit to Integer.MAX_VALUE

This commit is contained in:
Lucaskyy 2022-03-23 22:08:51 +01:00
parent e8182c17ad
commit ab6453ca8a
No known key found for this signature in database
GPG key ID: 1530BFF96D1EEB89

View file

@ -20,7 +20,7 @@ internal class Io(
private val bufferedInputStream = BufferedInputStream(input)
fun readFromJar() {
bufferedInputStream.mark(0)
bufferedInputStream.mark(Integer.MAX_VALUE)
// create a BufferedInputStream in order to read the input stream again when calling saveAsJar(..)
val jis = JarInputStream(bufferedInputStream)