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 BufferedSource

Packages

Link copied to clipboard
common

OkioRtfSource and the BufferedSource.asRtfSource() extension that wraps an Okio BufferedSource.