Package cc.ekblad.toml.serialization

Functions

encodeKey
Link copied to clipboard
fun encodeKey(key: String): String
from
Link copied to clipboard
fun TomlValue.Companion.from(stream: InputStream): TomlValue.Map

Parse the given TOML-formatted input stream into a TOML map.

fun TomlValue.Companion.from(path: Path): TomlValue.Map

Parse the given TOML-formatted file into a TOML map.

fun TomlValue.Companion.from(string: String): TomlValue.Map

Parse the given TOML-formatted string into a TOML map.

write
Link copied to clipboard
fun TomlValue.Map.write(outputStream: OutputStream)

Serializes the receiver TomlValue.Map into a valid TOML document and writes it to the given OutputStream.

fun TomlValue.Map.write(output: Appendable)

Serializes the receiver TomlValue.Map into a valid TOML document and writes it to the given Appendable.

fun TomlValue.Map.write(path: Path)

Serializes the receiver TomlValue.Map into a valid TOML document and writes it to the file represented by the given Path.