Package com.axelor.common
Class YamlUtils
- java.lang.Object
-
- com.axelor.common.YamlUtils
-
public class YamlUtils extends Object
This class defines from static helper methods to deal with YAML.
-
-
Constructor Summary
Constructors Constructor Description YamlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,String>
getFlattenedMap(Map<String,Object> source)
static Map<String,Object>
loadYaml(File file)
static Map<String,Object>
loadYaml(URL resource)
static Map<String,Object>
loadYaml(Path path)
-
-
-
Method Detail
-
loadYaml
public static Map<String,Object> loadYaml(File file) throws IOException
- Throws:
IOException
-
loadYaml
public static Map<String,Object> loadYaml(Path path) throws IOException
- Throws:
IOException
-
loadYaml
public static Map<String,Object> loadYaml(URL resource) throws IOException
- Throws:
IOException
-
-