StandardRtfParser

This class builds on the RawRtfParser to provide a parser which can deal with character encodings and Unicode. All of the character data it reads is presented back to the client as Unicode strings to make it as simple as possible to deal with.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun parse(source: RtfSource, listener: RtfListener)

Main entry point: parse RTF data from the input stream, and pass events based on the RTF content to the listener.

Link copied to clipboard
open override fun processBinaryBytes(data: ByteArray)

Handle event from the RawRtfParser.

Link copied to clipboard
open override fun processCharacterBytes(data: ByteArray)

Handle event from the RawRtfParser.

Link copied to clipboard
open override fun processCommand(command: Command, parameter: Int, hasParameter: Boolean, optional: Boolean)

Handle event from the RawRtfParser.

Link copied to clipboard
open override fun processDocumentEnd()

Handle event from the RawRtfParser.

Link copied to clipboard
open override fun processDocumentStart()

Handle event from the RawRtfParser.

Link copied to clipboard
open override fun processGroupEnd()

Handle event from the RawRtfParser.

Link copied to clipboard
open override fun processGroupStart()

Handle event from the RawRtfParser.

Link copied to clipboard
open override fun processString(string: String)

Handle event from the RawRtfParser.