public class SerializeWithFile
extends java.lang.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() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
children(java.io.File dir) |
void |
clear(java.io.File dir) |
java.lang.Object |
fromFile(java.io.File dir,
java.lang.String name,
java.lang.ClassLoader classLoader) |
java.lang.String[] |
list(java.io.File dir) |
void |
remove(java.io.File dir,
java.lang.String name) |
void |
toFile(java.io.File dir,
java.lang.String name,
java.lang.Object o) |
public void toFile(java.io.File dir, java.lang.String name, java.lang.Object o) throws ComponentPersistException
ComponentPersistException
public void remove(java.io.File dir, java.lang.String name)
public java.lang.Object fromFile(java.io.File dir, java.lang.String name, java.lang.ClassLoader classLoader) throws ComponentPersistException
ComponentPersistException
public void clear(java.io.File dir)
public java.lang.String[] list(java.io.File dir)
public java.lang.String[] children(java.io.File dir)