RtfSource

interface RtfSource(source)

The source of RTF data for the parser to consume, one byte at a time, with single-byte pushback.

Inheritors

Functions

Link copied to clipboard
abstract fun read(): Int

Read a single byte as an unsigned value 0..255, or -1 at end of input.

abstract fun read(dest: ByteArray): Int

Read bytes into dest. Implementations must read repeatedly if necessary to fill dest, returning a count smaller than dest.size only at end of input — the \binN reader treats a short count as a truncated document.

Link copied to clipboard
abstract fun unread(c: Int)

Push back a single byte so it will be returned again by the next read.