rtf-io-okio
Adapts an Okio BufferedSource to the RtfSource the parser reads from, so you can parse straight from a stream without buffering the whole document into a ByteArray first.
import com.darkrockstudios.libs.rtfparserkmp.io.asRtfSource
import com.darkrockstudios.libs.rtfparserkmp.parser.standard.StandardRtfParser
StandardRtfParser().parse(source.asRtfSource(), listener) // source: okio BufferedSourceContent copied to clipboard