| java.util.Properties CustomDNS.SimpleConfiguration
All known Subclasses: CustomDNS.Configuration,
SimpleConfiguration | public class SimpleConfiguration extends Properties (Code) | | A Property subclass which loads our configuration data for us.
This is very generic and could be reused in just about any project.
|
Method Summary | |
public static void | main(String[] args) A simple test program.
Load and print a configuration file. |
SimpleConfiguration | public SimpleConfiguration(String filename) throws FileNotFoundException, IOException(Code) | | Load our configuration data from the specified file.
Parameters: filename - The property file with our configuration data. exception: FileNotFoundException - The specified property filedoesn't exist. exception: IOException - An error occured while reading from theproperty file. |
main | public static void main(String[] args)(Code) | | A simple test program.
Load and print a configuration file. If this works correctly, you
can probably assume the entire class works.
Parameters: args - Our command line arguments. Pass the filename ofa regular Java properties file. |
|
|