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, set
public Yaml(File source)
public Yaml()
protected Map<String,Object> readRaw(File target) throws IOException
FileDataType
readRaw
in class FileDataType
target
- 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 FileDataType
public Object serializeArray(Object array)
serializeArray
in class FileDataType
public Object deserializeArray(Object array)
deserializeArray
in class FileDataType
protected Map<String,Object> newSection()
newSection
in class FileDataType
protected String toString(Map<String,Object> section)
toString
in class FileDataType
Copyright © 2017. All rights reserved.