• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Serialization and Externalization

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what is the use and difference between Serialization and Externalization?
 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1880
Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://java.sun.com/developer/TechTips/2000/tt0425.html
 
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.....
 
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is Externalization is similar to desaeralizing the object??
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic