TomlStringReader

A TomlReader that reads TOML string.

This reader is NOT thread-safe, so any concurrent usage should be avoided.

Use with Toml.decodeFromReader to decode objects. Note that it is more preferable to use Toml.decodeFromString directly as the reader is disposable and should not be used twice.

Constructors

Link copied to clipboard
constructor(source: String)

Functions

Link copied to clipboard
open override fun read(): Int

Reads a single character and returns its code, or returns -1 if EOF is met.