Class CommentsWriter
- java.lang.Object
-
- ru.vyarus.yaml.updater.parse.comments.CommentsWriter
-
public final class CommentsWriter extends java.lang.ObjectRenders comments model. Would render exactly the same content as in just read yaml file (by comments parser).- Since:
- 28.04.2021
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringwrite(CmtTree tree)static voidwrite(CmtTree tree, java.io.File file)Writes yaml into file.static voidwrite(CmtTree tree, java.io.OutputStream out)Writes yaml into stream.
-
-
-
Method Detail
-
write
public static java.lang.String write(CmtTree tree)
- Parameters:
tree- comments model tree- Returns:
- rendered yaml string
-
write
public static void write(CmtTree tree, java.io.File file)
Writes yaml into file.- Parameters:
tree- comments model treefile- target file
-
write
public static void write(CmtTree tree, java.io.OutputStream out)
Writes yaml into stream.- Parameters:
tree- comments model treeout- output stream
-
-