public final class PropertiesLoaderUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Properties |
loadAllProperties(java.lang.String resourceName,
java.lang.ClassLoader classLoader)
Load all properties from the given class path resource, using the given
class loader.
|
static java.util.Properties |
loadAllProperties(java.lang.String resourceName,
java.lang.ClassLoader classLoader,
java.util.logging.Logger logger,
java.util.logging.Level level,
java.lang.String msg) |
public static java.util.Properties loadAllProperties(java.lang.String resourceName,
java.lang.ClassLoader classLoader)
throws java.io.IOException
Merges properties if more than one resource of the same name found in the class path.
resourceName - the name of the class path resourceclassLoader - the ClassLoader to use for loading (or
null to use the default class loader)java.io.IOException - if loading failedpublic static java.util.Properties loadAllProperties(java.lang.String resourceName,
java.lang.ClassLoader classLoader,
java.util.logging.Logger logger,
java.util.logging.Level level,
java.lang.String msg)
throws java.io.IOException
java.io.IOException