• 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

What is object serialization?

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone please expalain what exactly is object serialization?
Thanks in advance.
 
buckaroo
Posts: 401
Postgres Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
check out this page. Here the serialization is described in detail.
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic