public final class ConfigReader extends Object
Modifier and Type | Method and Description |
---|---|
static InputStream |
getConfigStream(String configuration)
Tries to read the source from different destinations.
|
static Properties |
loadProperties(String propertyFileName)
Loads the given properties from the file system or from the classpath.
|
public static Properties loadProperties(String propertyFileName) throws IOException
propertyFileName
- the name of the property file to be loadedProperties
IOException
- in case of property file does not exist or cannot be loaded.public static InputStream getConfigStream(String configuration) throws IOException
configuration
- The source file nameIOException
- in case of configuration file does not exist.Copyright © 2016 SAPERION AG. All rights reserved.