tuweni / org.apache.tuweni.toml / Toml

Toml

class Toml (source)

Methods for parsing data stored in Tom's Obvious, Minimal Language (TOML).

Functions

canonicalDottedKey

Get the canonical form of the dotted key.

static fun canonicalDottedKey(dottedKey: String!): String!

joinKeyPath

Join a list of keys into a single dotted key string.

static fun joinKeyPath(path: MutableList<String!>!): String!

parse

Parse a TOML string.

static fun parse(input: String!): TomlParseResult!
static fun parse(input: String!, version: TomlVersion!): TomlParseResult!

Parse a TOML file.

static fun parse(file: Path!): TomlParseResult!
static fun parse(file: Path!, version: TomlVersion!): TomlParseResult!

Parse a TOML input stream.

static fun parse(is: InputStream!): TomlParseResult!
static fun parse(is: InputStream!, version: TomlVersion!): TomlParseResult!
static fun parse(reader: Reader!, version: TomlVersion!): TomlParseResult!
static fun parse(channel: ReadableByteChannel!, version: TomlVersion!): TomlParseResult!

Parse a TOML reader.

static fun parse(reader: Reader!): TomlParseResult!
static fun parse(channel: ReadableByteChannel!): TomlParseResult!

parseDottedKey

Parse a dotted key into individual parts.

static fun parseDottedKey(dottedKey: String!): MutableList<String!>!

tomlEscape

Escape a text string using the TOML escape sequences.

static fun tomlEscape(text: String!): StringBuilder!