public final class Persistence
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Persistence() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
loadObjectFromBin(java.lang.String filePath)
Load an Object from a binary file
|
static void |
saveObjectAsBin(java.io.File file,
java.lang.Object data)
Save an Object as a binary file
|
public static void saveObjectAsBin(java.io.File file, java.lang.Object data) throws java.io.IOException
file
- The file where the Object will be storeddata
- The Java's Object to be stored in filejava.io.IOException
- In case of error while saving the object.public static java.lang.Object loadObjectFromBin(java.lang.String filePath)
filePath
- Full path to the file