Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubts in serialization  RSS feed

Eusebio Floriano
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
I read sun�s I/O tutorial bu i�m yet with some doubts.
I understood what is serializable and how to code an serializable class.
But I did not understand how it works. Given an example, recognize when, if, and wich constructirs will be called in an object�s inheritance chain durin deserialization.
The only thing that i found in this tutorial was too vague.
The readObject method deserializes the next object in the stream and traverses its references to other objects recursively to deserialize all objects that are reachable from it. In this way, it maintains the relationships between the objects.

[ March 02, 2005: Message edited by: Vinicius Boson ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!