|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.huguesjohnson.serialization.XmlFormatter
public class XmlFormatter
XmlFormatter - Stores objects to an XML file
Constructor Summary | |
---|---|
XmlFormatter()
|
Method Summary | |
---|---|
Storable |
loadFrom(java.lang.String sourcePath)
Loads an object from the specified source path. |
void |
saveTo(Storable object,
java.lang.String outputPath)
Saves the object to the output path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlFormatter()
Method Detail |
---|
public Storable loadFrom(java.lang.String sourcePath) throws StorageException
loadFrom
in interface Formatter
sourcePath
- The path to load the object from.
StorageException
- If the load operation fails for any reason.public void saveTo(Storable object, java.lang.String outputPath) throws StorageException
saveTo
in interface Formatter
object
- The object to save.outputPath
- The path to save the object to.
StorageException
- If the save operation fails for any reason.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |