public class CommentStore extends Object
Constructor and Description |
---|
CommentStore(char pathSeperator,
int indents) |
Modifier and Type | Method and Description |
---|---|
List<String> |
header(String key)
Get header of option
|
void |
header(String key,
String... header)
Set option header.
|
List<String> |
mainHeader()
Get main header displayed at top of config.
|
void |
mainHeader(String... header)
Set the main header displayed at top of config.
|
void |
storeComments(InputStream inputStream) |
void |
writeComments(String yaml,
File output) |
public void mainHeader(String... header)
header
- headerpublic List<String> mainHeader()
public void header(String key, String... header)
key
- of option (or section)header
- of option (or section)public List<String> header(String key)
key
- of option (or section)public void storeComments(InputStream inputStream) throws IOException
IOException
public void writeComments(String yaml, File output) throws IOException
IOException
Copyright © 2016–2021. All rights reserved.