public class YAMLConfig
extends java.lang.Object
Constructor and Description |
---|
YAMLConfig(java.io.File file)
Creates/Loads a YAML Formatted Config
|
Modifier and Type | Method and Description |
---|---|
YAMLSection |
get()
Get Config Contents
|
void |
reload()
Reload Config Contents
|
void |
save()
Save Config Contents
|
void |
set(YAMLSection value)
Set Config Contents
|
org.json.JSONObject |
toJSON()
Converts Config Contents to JSON
|
java.lang.String |
toString() |
public YAMLConfig(java.io.File file) throws java.io.IOException, YAMLException
file
- java.io.IOException
YAMLException
public YAMLSection get()
public void set(YAMLSection value)
value
- Valuepublic void reload() throws java.io.IOException
java.io.IOException
public void save() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public org.json.JSONObject toJSON()