Package-level declarations
Types
The basic implementation of TomlWriter, handling all the essential logic except writeString and (optional) writeChar.
A date without a time-zone in the ISO-8601 calendar system.
A date-time without a time-zone in the ISO-8601 calendar system.
A time without a time-zone in the ISO-8601 calendar system.
A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system.
Represents array in TOML, whose values are TomlElement.
The builder for buildTomlArray { ... } factory function.
Modifies the encoding process of corresponding array-like property, either to force array of table to be encoded as block array, or to change how many items should be encoded per line (this will override the default config).
Changes the key of the class discriminator of a specific type hierarchy.
Adds comments to corresponding property.
The builder for Toml { ... } factory function.
Base class for encoding and decoding subclasses of baseClass without a classDiscriminator.
A special Decoder used internally by the decoding process, providing an extra decodeTomlElement to decode TomlElement from current position.
Represents anything in TOML, including and only including TomlNull, TomlLiteral, TomlArray, TomlTable.
A special Encoder used internally by the encoding process, providing an extra encodeTomlElement to encode TomlElement to current position.
Defines the representation of an indentation.
Forces the annotated array-like or table-like property to be a one-liner.
Represents a literal value, which could be boolean, integer, float, string, date-time.
Marks the annotated String property as literal when encoded.
A date without a time-zone in the ISO-8601 calendar system.
For JVM, this is an alias of java.time.LocalDate. For other platforms, this is kotlinx.datetime.LocalDate.
This type has builtin support for serialization.
A date-time without a time-zone in the ISO-8601 calendar system.
For JVM, this is an alias of java.time.LocalDateTime. For other platforms, this is kotlinx.datetime.LocalDateTime.
This type has builtin support for serialization.
A time without a time-zone in the ISO-8601 calendar system.
For JVM, this is an alias of java.time.LocalTime. For other platforms, this is kotlinx.datetime.LocalTime.
This type has builtin support for serialization.
Marks the annotated String property as multiline when encoded.
A TomlReader that reads TOML string from nativeReader.
A TomlWriter that writes TOML string to nativeWriter.
Represents null.
A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system.
For JVM, this is an alias of java.time.OffsetDateTime. For other platforms, this is kotlinx.datetime.Instant.
This type has builtin support for serialization.
A custom reader used when decoding TOML file.
Indicates that the corresponding type is only stable to use, but shouldn't be subclassed by any third party, otherwise it may result in unpredictable behavior.
A TomlWriter that writes TOML string to outputStream.
A TomlReader that reads TOML string.
A TomlWriter that writes TOML as string.
Represents table in TOML, whose keys are strings and values are TomlElements.
The builder for buildTomlTable { ... } factory function.
A custom writer used when encoding model class or TomlElement.
Functions
Annotates all the values from this TomlArray with the same annotations.
Annotates all the entries from this TomlTable with the same annotations.
Annotates this TomlArray with annotations.
Annotates this TomlTable with annotations.
Adds a TomlArray built with block to this array and annotates it with elementAnnotations.
Associates a TomlArray built with block with primitive key and annotates the array with elementAnnotations.
Casts this TomlElement to TomlArray.
More convenient means to cast this Decoder to TomlDecoder.
More convenient means to cast this Encoder to TomlEncoder.
Casts this TomlElement to TomlLiteral.
Casts this TomlElement to TomlNull.
Casts this TomlElement to TomlTable.
Creates a TomlArray by populating a TomlArrayBuilder with block.
Creates a TomlTable by populating a TomlTableBuilder with block.
Deserializes the content of nativeReader into a value of type T using the serializer retrieved from reified type parameter.
Parses the content of nativeReader into a TomlTable and deserializes the corresponding element fetched with keys into a value of type T using the serializer retrieved from reified type parameter.
Deserializes the content of nativeReader into a value of type T using deserializer.
Parses the content of nativeReader into a TomlTable and deserializes the corresponding element fetched with keys into a value of type T using deserializer.
Adds element to this array and annotates it with elementAnnotations.
Associates element with primitive key and annotates element with elementAnnotations.
Serializes value into nativeWriter using the serializer retrieved from reified type parameter.
Serializes value into nativeWriter using serializer.
Serializes value into outputStream using the serializer retrieved from reified type parameter.
Serializes value into outputStream using serializer.
Serializes value into TomlElement using the serializer retrieved from reified type parameter.
Gets a boolean with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a boolean, this returns null.
Gets a boolean with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a boolean, this returns null.
Gets a float (TOML float, which is Double) with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a float, this returns null.
Gets a float (TOML float, which is Double) with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a float, this returns null.
Gets an integer (TOML integer, which is Long) with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to an integer, this returns null.
Gets an integer (TOML integer, which is Long) with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to an integer, this returns null.
Gets a TomlLiteral with index from this TomlArray.
Gets a TomlLiteral with key from this TomlTable.
Gets a TomlLiteral with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, this returns null.
Gets a TomlLiteral with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, this returns null.
Gets a TomlLocalDate with index from this TomlArray.
Gets a TomlLocalDate with key from this TomlTable.
Gets a TomlLocalDate with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalDate, this returns null.
Gets a TomlLocalDate with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalDate, this returns null.
Gets a TomlLocalDateTime with index from this TomlArray.
Gets a TomlLocalDateTime with key from this TomlTable.
Gets a TomlLocalDateTime with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalDateTime, this returns null.
Gets a TomlLocalDateTime with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalDateTime, this returns null.
Gets a TomlLocalTime with index from this TomlArray.
Gets a TomlLocalTime with key from this TomlTable.
Gets a TomlLocalTime with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalTime, this returns null.
Gets a TomlLocalTime with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlLocalTime, this returns null.
Gets a TomlOffsetDateTime with index from this TomlArray.
Gets a TomlOffsetDateTime with key from this TomlTable.
Gets a TomlOffsetDateTime with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlOffsetDateTime, this returns null.
Gets a TomlOffsetDateTime with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a TomlOffsetDateTime, this returns null.
Gets a string with index from this TomlArray. If the element does not exist, or it is not a TomlLiteral, or it cannot be converted to a string, this returns null.
Gets a string with key from this TomlTable. If the entry does not exist, or it is not a TomlLiteral, or it cannot be converted to a string, this returns null.
Adds boolean to this array and annotates it with elementAnnotations.
Adds float to this array and annotates it with elementAnnotations.
Adds integer to this array and annotates it with elementAnnotations.
Adds string to this array and annotates it with elementAnnotations.
Adds localDate to this array and annotates it with elementAnnotations.
Adds localDateTime to this array and annotates it with elementAnnotations.
Adds localTime to this array and annotates it with elementAnnotations.
Adds offsetDateTime to this array and annotates it with elementAnnotations.
Associates boolean with primitive key and annotates boolean with elementAnnotations.
Associates float with primitive key and annotates float with elementAnnotations.
Associates integer with primitive key and annotates integer with elementAnnotations.
Associates string with primitive key and annotates string with elementAnnotations.
Associates localDate with primitive key and annotates localDate with elementAnnotations.
Associates localDateTime with primitive key and annotates localDateTime with elementAnnotations.
Associates localTime with primitive key and annotates localTime with elementAnnotations.
Associates offsetDateTime with primitive key and annotates offsetDateTime with elementAnnotations.
Parses the content of nativeReader into equivalent representation of TomlTable.
Adds a TomlTable built with block to this array and annotates it with elementAnnotations.
Associates a TomlTable built with block with primitive key and annotates the table with elementAnnotations.
Returns content as TomlLocalDate.
Returns content as TomlLocalDate only if it can be parsed, otherwise null.
Returns content as TomlLocalDateTime.
Returns content as TomlLocalDateTime only if it can be parsed, otherwise null.
Returns content as TomlLocalTime.
Returns content as TomlLocalTime only if it can be parsed, otherwise null.
Creates a TomlLiteral from boolean.
Creates a TomlLiteral from byte.
Creates a TomlLiteral from char.
Creates a TomlLiteral from double.
Creates a TomlLiteral from float.
Creates a TomlLiteral from int.
Creates a TomlLiteral from long.
Creates a TomlLiteral from short.
Creates a TomlLiteral from string.
Creates a TomlLiteral from uByte.
Creates a TomlLiteral from uInt.
Creates a TomlLiteral from uLong.
Creates a TomlLiteral from uShort.
Creates a TomlLiteral from localDate.
Creates a TomlLiteral from localDateTime.
Creates a TomlLiteral from localTime.
Creates a TomlLiteral from offsetDateTime.
Creates a TomlLiteral from enum.
Creates a TomlLocalDate by parsing text against ISO-8601 standard.
Retrieves the default KSerializer for NativeLocalDate in TOML.
Creates a TomlLocalDateTime by parsing text against ISO-8601 standard.
Retrieves the default KSerializer for NativeLocalDateTime in TOML.
Creates a TomlLocalTime by parsing text against ISO-8601 standard.
Retrieves the default KSerializer for NativeLocalTime in TOML.
Creates a TomlOffsetDateTime by parsing text against ISO-8601 standard.
Retrieves the default KSerializer for NativeOffsetDateTime in TOML.
Returns content as TomlOffsetDateTime.
Returns content as TomlOffsetDateTime only if it can be parsed, otherwise null.