fix: set marklimit to Integer.MAX_VALUE

This commit is contained in:
Lucaskyy 2022-03-23 22:08:51 +01:00 committed by oSumAtrIX
parent 2fabbdf71b
commit e6e468fbb5
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4

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)