be.saltwater.jaqel.level
Class XMLIdentitySaver

java.lang.Object
  extended bybe.saltwater.jaqel.level.XMLIdentitySaver

public class XMLIdentitySaver
extends java.lang.Object

Saves an Identity object to an XML file (savegame).

Author:
Robin Wittevrongel
See Also:
Identity, XMLIdentityLoader

Constructor Summary
XMLIdentitySaver()
           
 
Method Summary
 void save(java.lang.String filePath, Identity identity)
          Save an Identity to a file on the hard disk.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLIdentitySaver

public XMLIdentitySaver()
Method Detail

save

public void save(java.lang.String filePath,
                 Identity identity)
          throws java.io.IOException
Save an Identity to a file on the hard disk.

Parameters:
filePath - The full path to save the identity to.
identity - The identity that has to be saved.
Returns:
Returns false in case of an IOException, true in case of success.
Throws:
java.io.IOException