rtf-io-kotlinx

Adapts a kotlinx-io Source 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: kotlinx-io Source

Packages

Link copied to clipboard
common

KotlinxIoRtfSource and the Source.asRtfSource() extension that wraps a kotlinx-io Source.