public class PropertiesLoaderUtils
extends java.lang.Object
| Constructor | Description |
|---|---|
PropertiesLoaderUtils() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
fillProperties(java.util.Properties props,
java.lang.String resourceName) |
Fill the given properties from the specified class path resource (in ISO-8859-1 encoding).
|
static void |
fillProperties(java.util.Properties props,
java.lang.String resourceName,
java.lang.ClassLoader classLoader) |
Fill the given properties from the specified class path resource (in ISO-8859-1 encoding).
|
static java.util.Properties |
loadProperties(java.lang.String resourceName) |
Load all properties from the specified class path resource
(in ISO-8859-1 encoding), using the default class loader.
|
static java.util.Properties |
loadProperties(java.lang.String resourceName,
java.lang.ClassLoader classLoader) |
Load all properties from the specified class path resource
(in ISO-8859-1 encoding), using the given class loader.
|
public static java.util.Properties loadProperties(java.lang.String resourceName)
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 resourcejava.io.IOException - if loading failedpublic static java.util.Properties loadProperties(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 class loaderjava.io.IOException - if loading failedpublic static void fillProperties(java.util.Properties props,
java.lang.String resourceName)
throws java.io.IOException
Merges properties if more than one resource of the same name found in the class path.
props - the Properties instance to load intoresourceName - the name of the class path resourcejava.io.IOException - if loading failedpublic static void fillProperties(java.util.Properties props,
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.
props - the Properties instance to load intoresourceName - the name of the class path resourceclassLoader - the class loaderjava.io.IOException - if loading failedCopyright © 2008–2018 The Aspectran Project. All rights reserved.