Class StructureReader


  • public final class StructureReader
    extends java.lang.Object
    Snakeyaml-based parser. Builds exactly the same structure as comments parser (to simplify comparisons).

    Object list items are split into "dash" object and properties as children. This way item object structure could be completely preserved.

    Since:
    05.05.2021
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static StructTree read​(java.io.File file)  
      static StructTree read​(java.io.Reader reader)  
      static StructTree read​(java.lang.String file)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • read

        public static StructTree read​(java.io.File file)
        Parameters:
        file - yaml file
        Returns:
        parsed yaml model tree
      • read

        public static StructTree read​(java.lang.String file)
        Parameters:
        file - yaml file as string
        Returns:
        parsed yaml model tree
      • read

        public static StructTree read​(java.io.Reader reader)
        Parameters:
        reader - yaml content reader
        Returns:
        parsed yaml model tree