jw
val bufferedSource = source().buffer() val cipher = try { val ivSize = bufferedSource.readInt() val iv = bufferedSource.readByteArray(ivSize.toLong()) getDecryptionCipher(iv) } catch (e: IOException) { try { bufferedSource.close() } catch (inner: IOException) { e.addSuppressed(inner) } throw e } return bufferedSource.cipherSource(cipher)
chris-horner
A modern programming language that makes developers happier.