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


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

Re: serializing

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: serializing
Date 2012-10-09 02:09 -0700
Organization Canadian Mind Products
Message-ID <75q778582j376rtmvq5u3a77a2e4u942tn@4ax.com> (permalink)
References <fe978849-c763-4bfb-a8b1-58ffd7203a24@googlegroups.com>

Show all headers | View raw


On Mon, 8 Oct 2012 12:08:08 -0700 (PDT), bob smith
<bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone
who said :

>Let's say I have this class:

It all works no matter what a tangled mess of interconnections you
have. The worst that can happen is you end up serialising a lot of
dependent objects you forgot about.

The serialisation process keeps track of which objects it has already
written to the stream.  If it encounters a link to an already written
object, it just outputs a reference to it (I have not looked recently,
but it is probably just a serial number).  If it finds a new object,
it serialises it recursively, then outputs the link to it. 

I have forgotten if it keeps each object contiguous, by delaying write
or if it embeds.
-- 
Roedy Green Canadian Mind Products http://mindprod.com
The iPhone 5 is a low end Rolex. 

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


Thread

serializing bob smith <bob@coolfone.comze.com> - 2012-10-08 12:08 -0700
  Re: serializing Arne Vajhøj <arne@vajhoej.dk> - 2012-10-08 15:15 -0400
    Re: serializing markspace <-@.> - 2012-10-08 16:16 -0700
      Re: serializing Lew <lewbloch@gmail.com> - 2012-10-08 17:06 -0700
        Re: serializing markspace <-@.> - 2012-10-08 19:29 -0700
      Re: serializing Roedy Green <see_website@mindprod.com.invalid> - 2012-10-09 17:27 -0700
        Re: serializing Arne Vajhøj <arne@vajhoej.dk> - 2012-10-09 21:01 -0400
      Re: serializing Arne Vajhøj <arne@vajhoej.dk> - 2012-10-09 21:00 -0400
  Re: serializing Lew <lewbloch@gmail.com> - 2012-10-08 14:58 -0700
    Re: serializing Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-10-09 01:59 +0200
      Re: serializing Lew <lewbloch@gmail.com> - 2012-10-08 17:07 -0700
  Re: serializing Roedy Green <see_website@mindprod.com.invalid> - 2012-10-09 02:09 -0700

csiph-web