Class CommentsWriter


  • public final class CommentsWriter
    extends java.lang.Object
    Renders 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.String write​(CmtTree tree)  
      static void write​(CmtTree tree, java.io.File file)
      Writes yaml into file.
      static void write​(CmtTree tree, java.io.OutputStream out)
      Writes yaml into stream.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 tree
        file - target file
      • write

        public static void write​(CmtTree tree,
                                 java.io.OutputStream out)
        Writes yaml into stream.
        Parameters:
        tree - comments model tree
        out - output stream