Package-level declarations
Types
Represents array in TOML, which values are TomlElement.
Modify the encoding of corresponding array-like property, either to force array of tables to be encoded as block array, or to change how many items will be encoded per line (will override TomlConfig).
Add comments to corresponding property.
Builder provided for Toml { ... } factory function.
A special Decoder which is used internally by decoding process of Toml, providing an extra decodeTomlElement to decode TomlElement from the current position.
Represents anything in TOML, including and only including TomlNull, TomlLiteral, TomlArray, TomlTable.
A special Encoder which is used internally by encoding process of Toml, providing an extra encodeTomlElement to encode TomlElement to the current position.
Indicates indentation representation in string output.
Force inline the corresponding array-like or table-like property.
Represents literal value, which can be booleans, numbers, chars, strings.
Mark the corresponding String property as literal when encoded.
Mark the corresponding String property as multiline when encoded.
Represents null.
Indicates that the corresponding type is only stable to use, but shouldn't be subclassed by any third party, otherwise unpredictable behavior may be observed.
A TomlWriter that writes TOML to outputStream.
A TomlWriter that writes TOML as string.
Represents table in TOML, which keys are strings and values are TomlElement.
A custom writer used when encoding Model class or TomlElement to the output.
Functions
More convenient approach to cast this Decoder to TomlDecoder.
More convenient approach to cast this Decoder to TomlEncoder.
Serializes value into outputStream using serializer retrieved from reified type parameter.
Serializes value into outputStream using serializer.
Serializes value into TomlElement using serializer retrieved from reified type parameter.
Returns content as boolean.
Returns content as boolean only if content is "true" or "false", otherwise null.
Returns content as byte.
Returns content as byte only if content can be byte, otherwise null.
Returns content as char.
Returns content as char only if the length of content is exactly 1, otherwise null.
Returns content as double.
Returns content as double only if content can be an exact double or inf/-inf/nan, otherwise null.
Returns content as enum with given enum class context only if content suits in, otherwise null.
Returns content as float.
Returns content as float only if content can be an exact float or inf/-inf/nan, otherwise null.
Returns content as int.
Returns content as int only if content can be int, otherwise null.
Returns content as long.
Returns content as long only if content can be long, otherwise null.
Creates TomlLiteral from the given boolean value.
Creates TomlLiteral from the given char value.
Creates TomlLiteral from the given numeric value.
Creates TomlLiteral from the given string value.
Creates TomlLiteral from the given enum value. Delegates to creator function which consumes string.
Returns content as short.
Returns content as short only if content can be short, otherwise null.
Convert this to TomlArray.
Convert this to TomlLiteral.
Convert this to TomlNull.
Convert this to TomlTable.