Class AppPersistency
java.lang.Object
nz.ac.vuw.ecs.swen225.gp6.persistency.AppPersistency
This utility class is responsible for saving and loading the classes in the App package.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Configurationload()Load configuration from res/config.xml.static voidsave(Configuration config) Save configuration to res/config.xml.
-
Method Details
-
load
Load configuration from res/config.xml.- Returns:
- Configuration object
-
save
Save configuration to res/config.xml.- Parameters:
config- The configuration object- Throws:
IOException- If the file cannot be written to
-