Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #7620

De-serializing an object with missing child classes

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!z7g2000vbp.googlegroups.com!not-for-mail
From "raphfrk@gmail.com" <raphfrk@gmail.com>
Newsgroups comp.lang.java.programmer
Subject De-serializing an object with missing child classes
Date Tue, 6 Sep 2011 05:15:27 -0700 (PDT)
Organization http://groups.google.com
Lines 19
Message-ID <774ae53e-c127-4d79-8267-d8c8197d0dfb@z7g2000vbp.googlegroups.com> (permalink)
NNTP-Posting-Host 137.71.226.54
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1315311404 1195 127.0.0.1 (6 Sep 2011 12:16:44 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Tue, 6 Sep 2011 12:16:44 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info z7g2000vbp.googlegroups.com; posting-host=137.71.226.54; posting-account=iOAcbgoAAADC8J1iW-JMMSO74f5TboSg
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order HUALESNKRC
X-HTTP-UserAgent Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:7620

Show key headers only | View raw


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?

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

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