Package de.alpharogroup.yaml
Class YamlToPropertiesExtensions
- java.lang.Object
-
- de.alpharogroup.yaml.YamlToPropertiesExtensions
-
public class YamlToPropertiesExtensions extends java.lang.ObjectThe classYamlToPropertiesExtensionsprovides methods for convert yaml files to properties
-
-
Constructor Summary
Constructors Constructor Description YamlToPropertiesExtensions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.PropertiestoProperties(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.
-
-
-
Method Detail
-
toProperties
public static java.util.Properties toProperties(java.lang.String yamlFilename) throws java.io.IOExceptionTo 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.IOExceptionTo tree map.- Parameters:
path- the path- Returns:
- the tree map
- Throws:
java.io.IOException- Signals that an I/O exception has occurred
-
-