TomlNativeReader

class TomlNativeReader(nativeReader: Reader) : TomlReader

A TomlReader that reads TOML string from nativeReader.

Note that this reader only wraps the native reader, so the following requirements should be met:

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

Constructors

Link copied to clipboard
constructor(nativeReader: Reader)

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.