public class PropertyHelper extends Object
| Constructor and Description |
|---|
PropertyHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
loadFromFile(Properties properties,
String fileName)
Loads properties list from the specified file into specified Properties object.
|
static void |
loadFromResource(Properties properties,
String resourceName,
ClassLoader classLoader)
Loads properties list from the specified resource into specified Properties object.
|
public static void loadFromResource(Properties properties, String resourceName, ClassLoader classLoader) throws IOException
properties - Properties object to loadresourceName - Name of resource.classLoader - The class loader that should be used to load the resource. If null,primordial
class loader is used.IOExceptionpublic static void loadFromFile(Properties properties, String fileName) throws IOException
properties - Properties object to loadfileName - Fully qualified path name to the file.IOExceptionCopyright © 2017–2020 Eclipse Foundation. All rights reserved.