aspose file tools*
The moose likes Beginning Java and the fly likes serializable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "serializable" Watch "serializable" New topic
Author

serializable

Rebecca Witmer
Ranch Hand

Joined: Sep 10, 2004
Posts: 46
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?


SCJP 1.4
Jeff Bosch
Ranch Hand

Joined: Jul 30, 2003
Posts: 805
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...)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: serializable