public class PathConfigProvider extends java.lang.Object implements ConfigProvider
| Constructor and Description |
|---|
PathConfigProvider(java.nio.file.Path path) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists() |
java.lang.String |
load()
Load the content of the config file.
|
void |
save(java.lang.String content)
Save the content to the config file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfile, memory, memory, pathpublic java.lang.String load()
throws java.io.IOException
ConfigProviderload in interface ConfigProviderjava.io.IOException - If an I/O error occurspublic void save(java.lang.String content)
throws java.io.IOException
ConfigProvidersave in interface ConfigProvidercontent - The content to savejava.io.IOException - If an I/O error occurspublic boolean exists()
exists in interface ConfigProvider