public final class ConfigReader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
loadFile(java.lang.String fileName)
Load properties from the given YAML file
|
static java.util.Map<java.lang.String,java.lang.Object> |
loadStream(java.io.InputStream inputStream)
Load config from the given YAML stream
|
public static java.util.Map<java.lang.String,java.lang.Object> loadFile(java.lang.String fileName)
fileName
- the name of YAML file to readpublic static java.util.Map<java.lang.String,java.lang.Object> loadStream(java.io.InputStream inputStream)
inputStream
- the name of YAML stream to read