Jump to content

Restoring code from objects

- - - - -

  • Please log in to reply
1 reply to this topic

#1
ThemePark

ThemePark

    Programmer

  • Members
  • PipPipPipPip
  • 124 posts
Recently I lost a lot of my code due to multiple problems. Fortunately my data is still intact which is by far the most important. Some of my data is a file containing a list of some objects. Is it possible to somehow regenerate or figure out the classes and fields used for thosen objects from that file and a ObjectInputStream, so that I don't have to rewrite it all from scratch?

#2
Sinipull

Sinipull

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 386 posts
I don't think so. The serialized object doesn't contain the class structure and code within.

(Which is usually a good thing, if you need to add some methods.)
.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users