Class YamlToPropertiesExtensions


  • public class YamlToPropertiesExtensions
    extends java.lang.Object
    The class YamlToPropertiesExtensions provides methods for convert yaml files to properties
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Properties toProperties​(java.lang.String yamlFilename)
      To properties.
      static java.util.TreeMap<java.lang.String,​java.lang.Object> toTreeMap​(java.nio.file.Path path)
      To tree map.
      • Methods inherited from class java.lang.Object

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

      • YamlToPropertiesExtensions

        public YamlToPropertiesExtensions()
    • Method Detail

      • toProperties

        public static java.util.Properties toProperties​(java.lang.String yamlFilename)
                                                 throws java.io.IOException
        To properties.
        Parameters:
        yamlFilename - the yaml filename
        Returns:
        the properties
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred
      • toTreeMap

        public static java.util.TreeMap<java.lang.String,​java.lang.Object> toTreeMap​(java.nio.file.Path path)
                                                                                    throws java.io.IOException
        To tree map.
        Parameters:
        path - the path
        Returns:
        the tree map
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred