mars.util
Class PropertiesFile
java.lang.Object
mars.util.PropertiesFile
public class PropertiesFile
- extends Object
Provides means to work with ".properties" files which are used to store
various MARS settings.
- Author:
- Pete Sanderson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesFile
public PropertiesFile()
loadPropertiesFromFile
public static Properties loadPropertiesFromFile(String file)
- Produce Properties (a Hashtable) object containing key-value pairs
from specified properties file. This may be used as an alternative
to readPropertiesFile() which uses a different implementation.
- Parameters:
file
- Properties filename. Do NOT include the file extension as
it is assumed to be ".properties" and is added here.
- Returns:
- Properties (Hashtable) of key-value pairs read from the file.