-
Notifications
You must be signed in to change notification settings - Fork 26
Usage
Leonhard edited this page Oct 20, 2020
·
12 revisions
The usage is generic for every FileType.
You can either use the internal constructors of the FileTypes or the LightningBuilder
Valid constructors (For all FileTypes) are:
new FILETYPE-HERE(FILE)
new FILETYPE-HERE(NAME, PATH)
new FILETYPE-HERE(FILETYPE) //Copy-constructor
new FILETYPE-HERE(NAME, PATH, INPUTSTREAM)
![Basic operations]
Yaml yaml = new Yaml("Name", "Path");
Config config = new Config("Name", "Path"); //Special version of YAML
Json json = new Json("Name", "Path");
Toml toml = new Toml("Name", "Path");
Config configUsingLightningBuilder = LightningBuilder
.fromFile("")
.addInputStreamFromResource() //Optional
.setDataType()
.setReloadSettings()
.createConfig(); // Building
2020-2022 - SimplixSoftworks