File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes what is meant by saving an object's state to a sequence of bytes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "what is meant by saving an object Watch "what is meant by saving an object New topic
Author

what is meant by saving an object's state to a sequence of bytes

Birla Murugesan
Ranch Hand

Joined: Nov 25, 2008
Posts: 66

In serialization,what is meant by saving an object's state to a sequence of bytes?

And also, what is the difference btwn the serialized object and that object before serialization.
Birla Murugesan
Ranch Hand

Joined: Nov 25, 2008
Posts: 66
one more,

what is meant by flattened object in serialization?

Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1282

Hi Birla,

"serializing" means that the raw bytes of an object's data (=the state of that object) are used to store that object's state for example to a database or file or to send it over a network and so on. Moreover the process of serialization and deserialization can be adapted to your needs.

So a serialized form of an object can be described as its state when it is not active in memory. Of course it should be possible to deserialize it later because otherwise the serialization wouldn't make much sense.

Hope that helps for a brief overview ;-)


Marco
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is meant by saving an object's state to a sequence of bytes