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

Constructor Summary
UnitsConf()
           
 
Method Summary
static void parse(Reader in, UnitManager um)
          Parses the file and updates the unit manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitsConf

public UnitsConf()
Method Detail

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.