gecco.server.startup
Class UnitsConf
java.lang.Object
|
+--gecco.server.startup.UnitsConf
- public abstract class UnitsConf
- extends Object
This class loads the settings stored in units.conf.
- Author:
- Henrik Bäärnhielm, Karl Hasselström, Henrik Hägerström
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnitsConf
public UnitsConf()
parse
public static void parse(Reader in,
UnitManager um)
throws IOException,
SyntaxErrorException,
ParseErrorException
- Parses the file and updates the unit manager.
- Parameters:
in - The configuration is read from this.um - The unit manager.- Throws:
IOException - If there is an I/O error.SyntaxErrorException - If there is a syntax error.ParseErrorException - If there is a parse error.