Package io.zenoh
Object Config.Companion
-
- All Implemented Interfaces:
public class Config.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static Config.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final Config
loadDefault()
Returns the default config. final Config
fromFile(File file)
Loads the configuration from the File specified. final Config
fromFile(Path path)
Loads the configuration from the Path specified. final Config
fromJson(String config)
Loads the configuration from json-formatted string. final Config
fromJson5(String config)
Loads the configuration from json5-formatted string. final Config
fromYaml(String config)
Loads the configuration from yaml-formatted string. final Config
fromEnv()
Loads the configuration from the env variable CONFIG_ENV. -
-
Method Detail
-
loadDefault
final Config loadDefault()
Returns the default config.
-
fromFile
final Config fromFile(File file)
Loads the configuration from the File specified.
- Parameters:
file
- The Zenoh config file.- Returns:
The Config.
-
fromFile
final Config fromFile(Path path)
Loads the configuration from the Path specified.
- Parameters:
path
- Path to the Zenoh config file.- Returns:
The Config.
-
fromJson
final Config fromJson(String config)
Loads the configuration from json-formatted string.
Visit the default configuration for more information on the Zenoh config parameters.
- Parameters:
config
- Json formatted config.- Returns:
The Config.
-
fromJson5
final Config fromJson5(String config)
Loads the configuration from json5-formatted string.
Visit the default configuration for more information on the Zenoh config parameters.
- Parameters:
config
- Json5 formatted config- Returns:
The Config.
-
fromYaml
final Config fromYaml(String config)
Loads the configuration from yaml-formatted string.
Visit the default configuration for more information on the Zenoh config parameters.
- Parameters:
config
- Yaml formatted config- Returns:
The Config.
-
-
-
-