public class Yaml extends FileDataType
DEBUG_SERIALIZATION, fileLock, location, NEWLINE| Modifier and Type | Method and Description |
|---|---|
Object |
deserializeArray(Object array) |
protected Map<String,Object> |
newSection() |
protected Map<String,Object> |
readRaw(File target)
Reads all the information currently saved in the file, disregarding
any changes in memory
|
Object |
serializeArray(Object array) |
Object |
serializeMap(Map<String,Object> toFileFormat) |
String |
toString() |
protected String |
toString(Map<String,Object> section) |
deserializeMap, fromString, get, get, getMutable, getMutable, getRoot, isSet, newInstance, parseDeserializable, parseSerializable, readRaw, save, save, serializationCopy, setpublic Yaml(File source)
public Yaml()
protected Map<String,Object> readRaw(File target) throws IOException
FileDataTypereadRaw in class FileDataTypetarget - The File to be readMap<String, Object> value of the target File
This method must return an empty Map<String, Object> if the
file is empty or a reader returns null.IOException - If the file could not be readpublic Object serializeMap(Map<String,Object> toFileFormat)
serializeMap in class FileDataTypepublic Object serializeArray(Object array)
serializeArray in class FileDataTypepublic Object deserializeArray(Object array)
deserializeArray in class FileDataTypeprotected Map<String,Object> newSection()
newSection in class FileDataTypeprotected String toString(Map<String,Object> section)
toString in class FileDataTypeCopyright © 2017. All rights reserved.