Package anlavn.file
Class ObjectData
java.lang.Object
anlavn.file.ObjectData
The ObjectData class supports write and read object data to file at specific location.
Make sure your object class was "implements Serializable".
Make sure your object class was "implements Serializable".
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ObjectData
public ObjectData()
-
-
Method Details
-
writeData
Use this method to write object Data to file at filePath location.- Parameters:
filePath
- specific location of file, file name extension should be ".dat".Data
- a object data need write to file.
-
readData
Use this method to read object data from file at filePath location.- Parameters:
filePath
- specific location of file.- Returns:
- a object data in file.
-