open static fun fromToml(toml: String): Configuration
(source)
Read a configuration from a TOML-formatted string.
toml
- A TOML-formatted string.
Return
A Configuration loaded from the TOML file.
open static fun fromToml(toml: String, @Nullable schema: Schema?): Configuration
(source)
Read a configuration from a TOML-formatted string, associated with a validation schema.
toml
- A TOML-formatted string.
schema
- The validation schema for the configuration.
Return
A Configuration loaded from the TOML file.
open static fun fromToml(file: Path): Configuration
(source)
Loads a configuration from a TOML-formatted file.
file
- The path of the TOML-formatted configuration file.
NoSuchFileException
- If the file could not be found.
IOException
- If an IO error occurs.
Return
A Configuration loaded from the TOML file.
open static fun fromToml(file: Path, @Nullable schema: Schema?): Configuration
(source)
Loads a configuration from a file, associated with a validation schema.
file
- The path of the TOML-formatted configuration file.
schema
- The validation schema for the configuration.
NoSuchFileException
- If the file could not be found.
IOException
- If an IO error occurs.
Return
A Configuration loaded from the TOML file.
open static fun fromToml(is: InputStream): Configuration
(source)
Loads a configuration from a TOML-formatted file.
is
- An input stream providing TOML-formatted configuration.
IOException
- If an IO error occurs.
Return
A Configuration loaded from the TOML file.
open static fun fromToml(is: InputStream, @Nullable schema: Schema?): Configuration
(source)
Loads a configuration from a file, associated with a validation schema.
is
- An input stream providing TOML-formatted configuration.
schema
- The validation schema for the configuration.
IOException
- If an IO error occurs.
Return
A Configuration loaded from the TOML file.