Package org.oddjob.persist
Class SerializeWithFile
java.lang.Object
org.oddjob.persist.SerializeWithFile
Serialize an object to and from file with the given name. The .ser extension
is added to the file name.
When writing a temporary name is used in case the process is kill mid writing so there is less chance of a corrupted file. The temporary name includes an underscore in the name.
- Author:
- Rob Gordon.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SerializeWithFile
public SerializeWithFile()
-
-
Method Details
-
toFile
- Throws:
ComponentPersistException
-
remove
-
fromFile
public Object fromFile(File dir, String name, ClassLoader classLoader) throws ComponentPersistException - Throws:
ComponentPersistException
-
clear
-
list
-
children
-