java - Serialization and write object -


I wanted to know that we can change the method of serialization in Java, like say we have two fields in the class And we make an object of the class. Can we change the order in which the field of the objects are ordered? It is also related to writing in any way () the method that is used to write data in a .ser file .. ?? Please help

Thank you in advance ....

I wanted to know how to do custom serialization ..

Interpreting the interface will give you more control over your serialization and de-serialization process. [Code example] from Docs [code example]

The class of only one excibrius image is written in the serialization stream and it is the responsibility of the classroom to save and restore the contents of its examples. Externalizable foreign and foreign learning methods of the interface are implemented by a class so that the complete format of the stream and format of the stream can be given to an object and its supertops. These methods should co-ordinate with Supertechype explicitly to save their position. Excluding customized implementation of these methods to write objects and read object methods.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -