What is ObjectStreamClass used for?

John Zukowski

The ObjectStreamClass is used to check if the version of a serialized class (.ser file) is compatibile with the version of a class in memory/loadable from the CLASSPATH. See How can I programmatically obtain the serialVersionUID for a class? for an example of its usage.

It can also be used to get a descriptor for the fields in the stream. See the Serialization Specification for more information.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact