Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialization and Externalization

 
Madhawi Maurya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the use and difference between Serialization and Externalization?
 
Phal Ach
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Serialization is a process of saving objects state into sequence of bytes and sending that object through the stream. So that it can be reused as it is later.

Externalization is the process used mainly during internationalizing your program. Here some fixed values are stored in some text like files called property files. This is used to simplyfy your program by removing String literals and keep them in property file.
 
Krishna Srinivasan
Ranch Hand
Posts: 1874
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://java.sun.com/developer/TechTips/2000/tt0425.html
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Phalguni Bhatt:
Serialization is a process of saving objects state into sequence of bytes and sending that object through the stream. So that it can be reused as it is later.

Externalization is the process used mainly during internationalizing your program. Here some fixed values are stored in some text like files called property files. This is used to simplyfy your program by removing String literals and keep them in property file.



Not exactly correct. Externalization is not used for internalization. Externalization is also a serialization technique which gives you more control in the serialization process. You can serialize the required attributes not all attributes in a class.
 
akhilesh pandey
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes Satish,
I think you are right.Externalization is basically used to give modification to the serialized objects like..compressing them,encoding,encrypting etc.....
 
Dinesh Tahiliani
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Externalization is similar to desaeralizing the object??
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is Externalization is similar to deserializing the object?


Externalization and serialization mean the same thing. The difference between the Serializable and Externalizable interfaces is described in the article Krishna linked to.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic