be.saltwater.jaqel.creature.loaders
Class XMLCreatureLoader

java.lang.Object
  extended bybe.saltwater.jaqel.creature.loaders.XMLCreatureLoader
All Implemented Interfaces:
CreatureLoader

public class XMLCreatureLoader
extends java.lang.Object
implements CreatureLoader


Constructor Summary
XMLCreatureLoader()
           
 
Method Summary
 CreatureLoadData load(java.lang.String filename, java.lang.String type)
          Loads the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLCreatureLoader

public XMLCreatureLoader()
                  throws javax.xml.parsers.ParserConfigurationException
Method Detail

load

public CreatureLoadData load(java.lang.String filename,
                             java.lang.String type)
                      throws java.io.IOException,
                             IllegalFormatException
Description copied from interface: CreatureLoader
Loads the file.

Specified by:
load in interface CreatureLoader
Parameters:
filename - The filename of the file that should be loaded.
type - The type key of the creature that is in the file. Needed to pass to the CreatureTypeData constructor.
Throws:
java.io.IOException - When there was a problem reading the specified file.
IllegalFormatException - When the format of the file is not as expected.