I have written a class to integrate with someone else's code. I want the Vector it returns to be written out to a file so that she and I can get at the data. She's done that with a Vector in her code but I can't find where in the code she did it. It's a very large spaghetti-like project. Can someone tell me the story of serializable? How does that work? What is it supposed to be used to do? Is it really meant for writing stuff to files, then getting the data back again? Where can I find a good example?
posted 11 years ago
Here's the Sun Java Tutorial on Serializing Objects. It has all you're looking for.
Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)