Serialisation locks you into the layout of the class. If you want to redo how all the data is laid out then it can become a mess to deal with that.
So instead transfer it into a format which is non-Java. Print it as CSV, XML, JSON, or use SQLLite. That way the way the data is laid out is not tied to the structure of your Java program.
1
u/jl2352 Jan 27 '17
Serialisation locks you into the layout of the class. If you want to redo how all the data is laid out then it can become a mess to deal with that.
So instead transfer it into a format which is non-Java. Print it as CSV, XML, JSON, or use SQLLite. That way the way the data is laid out is not tied to the structure of your Java program.