public class YamlStorage extends Object implements FileStorage
Modifier and Type | Class and Description |
---|---|
class |
YamlStorage.YamlKey |
Constructor and Description |
---|
YamlStorage(File file) |
YamlStorage(File file,
String header) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
File |
getFile() |
YamlStorage.YamlKey |
getKey(String root)
Returns a
DataKey starting from the given root. |
int |
hashCode() |
boolean |
load()
Loads data from a file or other location.
|
void |
save()
Saves the in-memory aspects of the storage to disk.
|
String |
toString() |
public YamlStorage(File file)
public File getFile()
getFile
in interface FileStorage
public YamlStorage.YamlKey getKey(String root)
Storage
DataKey
starting from the given root.public boolean load()
Storage
public void save()
Storage
Copyright © 2021. All rights reserved.