Skip to content

Pure Kotlin interfaces for a closeable byte stream reader and writer.

License

Notifications You must be signed in to change notification settings

k-libs/k-closeable-io-stream

Repository files navigation

Closeable IO Streams

k closeable io stream docs dokka ff69b4 closeable io stream

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!")
  }
}

About

Pure Kotlin interfaces for a closeable byte stream reader and writer.

Topics

Resources

License

Stars

Watchers

Forks

Languages