:rocket: *Introducing A Lightweight Kotlin Multipl...
# opensource
s
🚀 Introducing A Lightweight Kotlin Multiplatform Port of JDK IO and NIO!🌐 Hey everyone! We’re super excited to introduce FleekSoft IO, a lightweight library that brings the power of JDK I/O classes to Kotlin Multiplatform. If you’ve ever used Reader, InputStream, BufferedReader, or needed Charset support in your projects, we’ve got you covered—across all platforms! 🙌 What It Offers:Core JDK I/O Classes: Familiar interfaces for handling streams and reading characters/bytes. • Charset Support: Seamlessly encode and decode text with built-in charset handling. • Multiplatform Compatibility: Write once, run anywhere! Checkout it on Github: https://github.com/fleeksoft/fleeksoft-io
🎉 1
😮 1
👏 1
s
I'm just curious: Would you mind sharing a bit on the motivation for creating this library instead of simply using https://github.com/Kotlin/kotlinx-io, esp. as you have integrations with the latter?
s
@Sebastian Schuberth Both are different. This library does not include the Java File class, so you can’t read or write files with it. For that functionality, you need Okio or kotlinx-io. I’ve already created an extension for kotlinx-io to convert Source into InputStream and Okio is upcoming. My library provides the InputStream class and related upper classes. You can create an InputStream from a String or ByteArray, but to work with files, you’ll need to use either kotlinx-io or Okio extension. For more details, check the README.md file, where I’ve specified which module provides which classes. The main purpose is to make the transition from JDK to KMP as seamless as possible, with minimal changes.
👍🏻 1