Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7666
| From | Robert Klemme <shortcutter@googlemail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: De-serializing an object with missing child classes |
| Date | 2011-09-07 07:46 +0200 |
| Message-ID | <9coeqfFfujU1@mid.individual.net> (permalink) |
| References | <774ae53e-c127-4d79-8267-d8c8197d0dfb@z7g2000vbp.googlegroups.com> <a8c55b80-c7c2-4eaa-90b3-019fffe037ce@a13g2000yqd.googlegroups.com> <9651530b-9ed9-41cc-b686-b0644226a65a@a31g2000vbt.googlegroups.com> |
On 06.09.2011 16:17, raphfrk@gmail.com wrote: > On Sep 6, 1:34 pm, Robert Klemme<shortcut...@googlemail.com> wrote: >> http://download.oracle.com/javase/6/docs/api/java/io/Serializable.html > > Thanks for the info. Is there a way to create a custom deserializer > that can deserialize already serialized classes? I am not sure I get exactly what you mean here. Do you want to resurrect class objects (i.e. the code) from the stream? I don't think this is possible without complex logic. Or did you mean you want to write a custom deserializer after instances have been serialized? It might be possible but you would have to know how the default serializer writes out data. You may be able to find out by looking at how an array is serialized by default and then emulating that (IIRC first the length is written and then individual elements). You certainly need some experimenting to get this going. Other than that there are some hints in docs about schema change and how to deal with that (only it's not called "schema change" but they are talking about class versions). The java.sun.com had some tutorials but I don't have any links handy. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
De-serializing an object with missing child classes "raphfrk@gmail.com" <raphfrk@gmail.com> - 2011-09-06 05:15 -0700
Re: De-serializing an object with missing child classes Robert Klemme <shortcutter@googlemail.com> - 2011-09-06 05:34 -0700
Re: De-serializing an object with missing child classes "raphfrk@gmail.com" <raphfrk@gmail.com> - 2011-09-06 07:17 -0700
Re: De-serializing an object with missing child classes Robert Klemme <shortcutter@googlemail.com> - 2011-09-07 07:46 +0200
Re: De-serializing an object with missing child classes Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-09-07 11:45 +0000
Re: De-serializing an object with missing child classes "raphfrk@gmail.com" <raphfrk@gmail.com> - 2011-09-07 07:17 -0700
Re: De-serializing an object with missing child classes "raphfrk@gmail.com" <raphfrk@gmail.com> - 2011-09-07 07:14 -0700
Re: De-serializing an object with missing child classes Roedy Green <see_website@mindprod.com.invalid> - 2011-09-06 06:04 -0700
Re: De-serializing an object with missing child classes Roedy Green <see_website@mindprod.com.invalid> - 2011-09-06 11:59 -0700
Re: De-serializing an object with missing child classes Arne Vajhøj <arne@vajhoej.dk> - 2011-09-06 19:51 -0400
Re: De-serializing an object with missing child classes markspace <-@.> - 2011-09-06 17:53 -0700
Re: De-serializing an object with missing child classes Arne Vajhøj <arne@vajhoej.dk> - 2011-09-06 19:53 -0400
csiph-web