This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is object serialization?

 
Chandra Bairi
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please expalain what exactly is object serialization?
Thanks in advance.
 
Donald R. Cossitt
buckaroo
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The process of storing and retrieving objects in an external file is called serialization. Writing to a file is referred to as serializing the object, and reading an object from a file is called deserializing an object.
See
ObjectOutputStream
ObjectInputStream
DataInputStream
DataOutputStream

[ September 15, 2003: Message edited by: Donald R. Cossitt ]
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
check out this page. Here the serialization is described in detail.
 
Gayathri Prasad
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
To make objects persistent i.e permanent we need to save them on the harddisk or some media. Saving the objects and making them persistent is called Object Serialization and reverse process is called Deserialization.
Cheers,
Gaya3
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be real picky, I'd separate serialization issues from persistence and files. It just turns an object into a string or stream of bytes. Nearly anything can be done with the serialized data.
For example, the same terms are used in sending an object "over the wire" in a distributed application. The sender serializes the object to a stream and the receiver deserializes and recreates the object. Some remote protocols do all this for you, some make you do the work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic