tuweni / org.apache.tuweni.config / Configuration / toToml

toToml

open fun toToml(): String! (source)

Get a TOML-formatted representation of this configuration.

Return
String!: A TOML-formatted representation.

open fun toToml(path: Path!): Unit (source)

Save a configuration to a TOML-formatted file.

If necessary, parent directories for the output file will be created.

Parameters

path - Path!: The file path to write the TOML-formatted output to.

Exceptions

IOException - If the file cannot be written.

abstract fun toToml(appendable: Appendable!): Unit (source)

Writes a configuration in TOML format.

Parameters

appendable - Appendable!: The output to write to.

Exceptions

IOException - If the file cannot be written.