appl.data
Class SerializedDataLoader

java.lang.Object
  extended by appl.data.SerializedDataLoader
All Implemented Interfaces:
DataLoader, Serializable

public class SerializedDataLoader
extends Object
implements DataLoader

Author:
Dominik Appl
See Also:
Serialized Form

Field Summary
protected  File loadFile
           
 
Constructor Summary
SerializedDataLoader(File loadFile)
           
SerializedDataLoader(File loadFile, boolean DELETE_SOURCE_AFTER_LOADING)
           
 
Method Summary
 String getLoadInfo()
           
 Object load()
          On invocation the data is loaded and returned
static void SerializeToFile(Object o, File destFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loadFile

protected File loadFile
Constructor Detail

SerializedDataLoader

public SerializedDataLoader(File loadFile,
                            boolean DELETE_SOURCE_AFTER_LOADING)

SerializedDataLoader

public SerializedDataLoader(File loadFile)
Method Detail

load

public Object load()
            throws LoadingException
Description copied from interface: DataLoader
On invocation the data is loaded and returned

Specified by:
load in interface DataLoader
Returns:
the newly loaded object
Throws:
LoadingException - if for some reason the data could not be loaded

SerializeToFile

public static void SerializeToFile(Object o,
                                   File destFile)
                            throws LoadingException
Throws:
LoadingException

getLoadInfo

public String getLoadInfo()
Specified by:
getLoadInfo in interface DataLoader
Returns:
some general information about the loading class (like what the class exactly loads)