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.IOException
public static void loadFromFile(Properties properties, String fileName) throws IOException
properties
- Properties object to loadfileName
- Fully qualified path name to the file.IOException
Copyright © 2020. All rights reserved.