Class YamlUtils

java.lang.Object
io.gitbub.devlibx.easy.helper.yaml.YamlUtils

public class YamlUtils extends Object
  • Constructor Details

    • YamlUtils

      public YamlUtils()
  • Method Details

    • readYamlFromString

      public static <T> T readYamlFromString(String content, Class<T> cls)
      Read YAM content and convert to an object
    • readYamlFromCamelCaseString

      public static <T> T readYamlFromCamelCaseString(String content, Class<T> cls)
      Read YAM content (Camel Case) and convert to an object
    • readYamlCamelCase

      public static <T> T readYamlCamelCase(String file, Class<T> cls)
      Read YAM file (Camel Case) and convert to a object
    • readYaml

      public static <T> T readYaml(String file, Class<T> cls)
      Read YAM file and convert to an object
    • readYamlFromResourcePath

      public static <T> T readYamlFromResourcePath(String file, Class<T> cls)
      Read file from resources path
      Parameters:
      file - file coming from "resources" dir