public class SerializeWithFile extends Object
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.
Constructor and Description |
---|
SerializeWithFile() |
public void toFile(File dir, String name, Object o) throws ComponentPersistException
ComponentPersistException
public Object fromFile(File dir, String name, ClassLoader classLoader) throws ComponentPersistException
ComponentPersistException
public void clear(File dir)