Class YamlFormat
java.lang.Object
com.github.siroshun09.configapi.format.yaml.YamlFormat
- All Implemented Interfaces:
- FileFormat<MapNode>
A 
FileFormat implementation that loading/saving MapNode from/to yaml files.
 
 Supported Nodes:
 
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final YamlFormatAn instance ofYamlFormatthat processes the comments.static final YamlFormatAn instance of defaultYamlFormat.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.siroshun09.configapi.core.file.FileFormatload, load, save, save
- 
Field Details- 
DEFAULTAn instance of defaultYamlFormat.
- 
COMMENT_PROCESSINGAn instance ofYamlFormatthat processes the comments.
 
- 
- 
Method Details- 
builderCreates a newYamlFormat.Builder.- Returns:
- a new YamlFormat.Builder
 
- 
loadDescription copied from interface:FileFormatLoads a node from aReader.- Specified by:
- loadin interface- FileFormat<MapNode>
- Parameters:
- reader- a- Readerto load a node
- Returns:
- a loaded Node(FileFormat)
- Throws:
- IOException- if I/O error occurred
 
- 
savepublic void save(@NotNull @NotNull MapNode node, @NotNull @NotNull Writer writer) throws IOException Description copied from interface:FileFormatSaves a node to aWriter.- Specified by:
- savein interface- FileFormat<MapNode>
- Parameters:
- node- a root- Node(- FileFormat) to save
- writer- a- Writerto write a node
- Throws:
- IOException- if I/O error occurred
 
 
-