Package dk.lockfuglsang.minecraft.yml
Class YmlCommentParser
java.lang.Object
dk.lockfuglsang.minecraft.yml.YmlCommentParser
A very simplistic yml parser, that only do the following:
- Keep track of indentation-levels and sections.
- Handle comments.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment(String path, String comment)
void
addComments(Map<String,String> comments)
getComment(String path)
void
void
loadFromString(String contents)
mergeComments(String ymlPure)
Merges the comments into the "pure" yml.
-
Constructor Details
-
YmlCommentParser
public YmlCommentParser()
-
-
Method Details
-
getCommentMap
-
addComment
-
addComments
-
getComment
-
mergeComments
Merges the comments into the "pure" yml.- Parameters:
ymlPure
- A YML data-tree, without comments.- Returns:
- A YML data-tree including comments.
-
load
- Throws:
IOException
-
loadFromString
-