Closeable IO Streams Pure Kotlin interface definitions for a closeable byte stream reader and writer. Import build.gradle.kts implementation("io.k-libs:closeable-io-stream:0.1.0") Usage class MyReader : CloseableByteReader { fun read(buffer: ByteArray, offset: Int, max: Int): Int { TODO("I'm reading some bytes!") } fun close() { TODO("I'm closing a resource!") } }