public class PropertiesUtils extends Properties
defaults| Modifier and Type | Method and Description |
|---|---|
static Properties |
getPropertiesFromClasspath(String fileName)
Loads a Properties file from the classpath matching the given file name
|
static Properties |
getPropertiesFromPath(String fileName)
Loads a Properties file from the given file name
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, valuespublic static Properties getPropertiesFromClasspath(String fileName) throws PropertiesFileNotFoundException
fileName - PropertiesFileNotFoundException - if the Properties file could not be loaded from the classpathpublic static Properties getPropertiesFromPath(String fileName) throws PropertiesFileNotFoundException
fileName - PropertiesFileNotFoundException - if the Properties file could not be loaded from the given path and file nameCopyright © 2011–2017 Knowm Inc.. All rights reserved.