public class UserProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_USER_PROPERTIES_FILENAME
Filename to use for userProps, if no one given as parameter
|
| Modifier and Type | Method and Description |
|---|---|
static Properties |
read(String pDefaultProps,
String pPath,
String pFle)
Read user properties out of a file in users home-directory.
|
static void |
write(Properties pUserProps,
String pPath,
String pFile)
Write user properties into a file in users home-directory.
|
protected static final String DEFAULT_USER_PROPERTIES_FILENAME
public static Properties read(String pDefaultProps, String pPath, String pFle) throws IOException
pDefaultProps - the default properties name (will read by the class loader), may be nullpPath - optional path underneath users home-directory, may be nullpFle - optional filename for user properties. If null, a default filename will be used.IOException - if we have IO problemspublic static void write(Properties pUserProps, String pPath, String pFile) throws IOException
pUserProps - the user properties to write into a filepPath - optional path underneath users home-directory, may be nullpFile - optional filename for user properties. If null, a default filename will be used.IOException - if we have IO problemsCopyright © 2014 Jürgen Zeller (privat). All rights reserved.