Serialization is the process of converting an object into a
stream of bytes in order to store the object or transmit it to memory, a
database, or a file.
*Its main purpose is to save the state of an object in
order to be able to recreate it when needed. The reverse process is called
deserialization.
*On the other end, deserialization reconstructs the object from the stream.
Some good uses for serialization/deserialization include:
- Storing user preferences in an object.
- Maintaining security information across pages and applications.
- Modification of XML documents without using the DOM.
- Passing an object from on application to another.
- Passing an object from one domain to another.
- Passing an object through a firewall as an XML string.
No comments:
Post a Comment