|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectutils.FileSaveLoadUtils
public final class FileSaveLoadUtils
Utils which helps with saving loading objects to files - serialization.
| Constructor Summary | |
|---|---|
FileSaveLoadUtils()
|
|
| Method Summary | |
|---|---|
static String |
fileCounterPrefix(String path,
int dayCounter,
int hourCounter)
creates a filename in the shape: path0001 for a fileCounter equals to 1 |
static Object |
loadObject(String file,
Logger log)
Loading a serialized object from a file on specified path. |
static void |
saveObject(Object obj,
String file,
Logger log)
Serialization of an object to a file of specified path |
static String |
setPathFromDialog(String dialogName,
String directory)
Invokes a dialog to get a path to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSaveLoadUtils()
| Method Detail |
|---|
public static void saveObject(Object obj,
String file,
Logger log)
obj - file - - path to a file to save tolog -
public static Object loadObject(String file,
Logger log)
file - - path to a filelog -
public static String fileCounterPrefix(String path,
int dayCounter,
int hourCounter)
path - fileCounter -
public static String setPathFromDialog(String dialogName,
String directory)
dialogName - - a description in the header of the dialog.directory - - an initial directory of the dialog (by default Documents and Settings).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||