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 |
---|---|
boolean |
equals(java.lang.Object object) |
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, org.yaml.snakeyaml.error.YAMLException
file
- java.io.IOException
org.yaml.snakeyaml.error.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 boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public org.json.JSONObject toJSON()