public class ConfigWriter
extends java.lang.Object
Config
into file-lines.
ConfigReader can write a single file at a time, so it is NOT thread safe.
Constructor and Description |
---|
ConfigWriter()
Create a new ConfigWriter that doesn't write anywhere.
|
ConfigWriter(java.nio.file.Path outputPath)
Create a new ConfigWriter that writes to a Path.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
parseLines(ConfigNode writing)
Parse the lines of a
ConfigNode . |
void |
write(ConfigNode writing)
Write a
ConfigNode into the given resource. |
public ConfigWriter()
public ConfigWriter(java.nio.file.Path outputPath)
outputPath
- Path to write to.public void write(ConfigNode writing) throws java.io.IOException
ConfigNode
into the given resource.writing
- ConfigNode to write.java.io.IOException
- If the Path given to constructor can not be written to.java.lang.IllegalStateException
- If the Path is nullpublic java.util.List<java.lang.String> parseLines(ConfigNode writing)
ConfigNode
.
"Write" the lines into a List.
writing
- ConfigNode to "write"