public class PropertyLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
defaultPropFileName |
protected static java.lang.String |
jarFileName |
protected static java.lang.String |
packageName |
protected static java.lang.String |
userPropFileName |
Constructor and Description |
---|
PropertyLoader() |
Modifier and Type | Method and Description |
---|---|
static java.util.Properties |
load()
loads the properties from a file.
|
static void |
main(java.lang.String[] args) |
static void |
save(java.util.Properties props)
writes the current system properties out to the file given.
|
static void |
save(java.util.Properties props,
java.lang.String filename)
writes the current system properties out to the file given.
|
protected static java.lang.String jarFileName
protected static java.lang.String defaultPropFileName
protected static java.lang.String packageName
protected static java.lang.String userPropFileName
public static java.util.Properties load() throws java.io.IOException
java.io.IOException
public static void save(java.util.Properties props) throws java.io.IOException
java.io.IOException
public static void save(java.util.Properties props, java.lang.String filename) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)