Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7649
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.glorb.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail |
|---|---|
| Date | Tue, 06 Sep 2011 19:53:06 -0400 |
| From | Arne Vajhøj <arne@vajhoej.dk> |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: De-serializing an object with missing child classes |
| References | <774ae53e-c127-4d79-8267-d8c8197d0dfb@z7g2000vbp.googlegroups.com> |
| In-Reply-To | <774ae53e-c127-4d79-8267-d8c8197d0dfb@z7g2000vbp.googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Lines | 26 |
| Message-ID | <4e66b270$0$311$14726298@news.sunsite.dk> (permalink) |
| Organization | SunSITE.dk - Supporting Open source |
| NNTP-Posting-Host | 72.192.23.141 |
| X-Trace | news.sunsite.dk DXC=0>lbk<6Gkk61@QH[VaTAe9YSB=nbEKnk;D938Hb_SZ9>JPe3\kP5EU1KBm9cfh9BS4M2;kT<[:>[1m6VQ`Kki7\5f?m\GmIMkK> |
| X-Complaints-To | staff@sunsite.dk |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7649 |
Show key headers only | View raw
On 9/6/2011 8:15 AM, raphfrk@gmail.com wrote:
> Is this possible?
>
> For example, assuming that I serialized this class
>
> import java.io.*;
>
> public class StorageClass implements Serializable {
>
> private static final long serialVersionUID = 1L;
>
> public Serializable[] stored;
>
> }
>
> I then set the stored array to a set of serializable objects.
>
> At a later time, I want to deserialize the object, but one of the
> stored classes is no longer available. Is there a way to deserialize
> the object, but have that entry in the array be null?
The reason why XML serialization is better than binary serialization
for long time persisting.
Arne
Back to comp.lang.java.programmer | Previous | Next — Previous 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