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