name.angoca.db2sa.readers
Class ConfigurationReader
java.lang.Object
name.angoca.db2sa.readers.ConfigurationReader
public final class ConfigurationReader
- extends Object
This class read the configuration file and then it can return the set of
parameters to the controller.
Control Version
- 0.0.1 Class creation.
- 0.1.0 Recommendations from PMD.
- 0.1.1 Organized.
- 0.1.2 Close streams.
- 1.0.0 Moved to version 1.
- Version:
- 1.0.0 2009-07-19
- Author:
- Andres Gomez Casanova (AngocA)
Method Summary |
static Properties |
readFile(String filename)
Reads a file given its filename, and the retrieves the properties stored
in the file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
readFile
public static Properties readFile(String filename)
throws AbstractReaderException
- Reads a file given its filename, and the retrieves the properties stored
in the file.
- Parameters:
filename
- name of the file that contains the configuration of the
application.
- Returns:
- The set of properties read from the file.
- Throws:
AbstractReaderException
- If an error reading the file occurs, error such as file not
found, or invalid structure.
Andres Gomez Casanova (AngocA) 
This work is licensed under a Creative Commons Attribution 3.0 Unported License.