| java.lang.Object org.springframework.core.io.support.PropertiesLoaderUtils
PropertiesLoaderUtils | abstract public class PropertiesLoaderUtils (Code) | | Convenient utility methods for loading of java.util.Properties ,
performing standard handling of input streams.
For more configurable properties loading, including the option of a
customized encoding, consider using the PropertiesLoaderSupport class.
author: Juergen Hoeller author: Rob Harrop since: 2.0 See Also: PropertiesLoaderSupport |
fillProperties | public static void fillProperties(Properties props, Resource resource) throws IOException(Code) | | Fill the given properties from the given resource.
Parameters: props - the Properties instance to fill Parameters: resource - the resource to load from throws: IOException - if loading failed |
loadAllProperties | public static Properties loadAllProperties(String resourceName) throws IOException(Code) | | Load all properties from the given class path resource,
using the default class loader.
Merges properties if more than one resource of the same name
found in the class path.
Parameters: resourceName - the name of the class path resource the populated Properties instance throws: IOException - if loading failed |
loadAllProperties | public static Properties loadAllProperties(String resourceName, ClassLoader classLoader) throws IOException(Code) | | Load all properties from the given class path resource,
using the given class loader.
Merges properties if more than one resource of the same name
found in the class path.
Parameters: resourceName - the name of the class path resource Parameters: classLoader - the ClassLoader to use for loading(or null to use the default class loader) the populated Properties instance throws: IOException - if loading failed |
loadProperties | public static Properties loadProperties(Resource resource) throws IOException(Code) | | Load properties from the given resource.
Parameters: resource - the resource to load from the populated Properties instance throws: IOException - if loading failed |
|
|