Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding Externizable  RSS feed

 
Vikas Paleja
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

What i know about the Externizable interface is it gives you a better way of doing Serilization than using the Serilizable interface but never understood what is the better way

Can someone illustrate teh advantages of Externizable over the Serilizable interface if possible wid a small example

Bye
Vikas
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the doc (http://java.sun.com/j2se/1.5.0/docs/api/) it looks as though implementing Externalizable means you're going to write your own conversion from object to stream and back. You might do this if you have a more efficient way to convert to stream and back than the default serialization code. I haven't done any serialization in years, and can't think of a good example. Anyone?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!