Package cc.carm.lib.yamlcommentupdater
Class CommentedYAMLWriter
- java.lang.Object
-
- cc.carm.lib.yamlcommentupdater.CommentedYAMLWriter
-
public class CommentedYAMLWriter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static @NotNull java.lang.StringSEPARATOR
-
Constructor Summary
Constructors Constructor Description CommentedYAMLWriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static @Nullable java.lang.StringbuildHeaderComments(@NotNull CommentedYAML source, @Nullable java.lang.String path, @NotNull java.lang.String indents)protected static java.lang.StringbuildIndents(@NotNull java.lang.String key)protected static voidwriteWithComments(@NotNull CommentedYAML source, @NotNull java.io.BufferedWriter writer)static voidwriteWithComments(@NotNull CommentedYAML source, @NotNull java.io.File file)
-
-
-
Field Detail
-
SEPARATOR
@NotNull protected static final @NotNull java.lang.String SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeWithComments
public static void writeWithComments(@NotNull @NotNull CommentedYAML source, @NotNull @NotNull java.io.File file) throws java.io.IOException- Throws:
java.io.IOException
-
writeWithComments
protected static void writeWithComments(@NotNull @NotNull CommentedYAML source, @NotNull @NotNull java.io.BufferedWriter writer) throws java.io.IOException- Throws:
java.io.IOException
-
buildIndents
protected static java.lang.String buildIndents(@NotNull @NotNull java.lang.String key)
-
buildHeaderComments
@Nullable protected static @Nullable java.lang.String buildHeaderComments(@NotNull @NotNull CommentedYAML source, @Nullable @Nullable java.lang.String path, @NotNull @NotNull java.lang.String indents)
-
-