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


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

Re: serialize spoilers

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: serialize spoilers
Date 2012-10-25 04:30 -0700
Organization Canadian Mind Products
Message-ID <mf8i88h0upg2j0gcaeepntgcliufot5u2a@4ax.com> (permalink)
References <a4674ffd-d3fb-4801-b4c0-ac7c5c38ee35@googlegroups.com>

Show all headers | View raw


On Wed, 24 Oct 2012 14:05:00 -0700 (PDT), bob smith
<bob@coolfone.comze.com> wrote, quoted or indirectly quoted someone
who said :

>What do you typically do when you want to serialize an object that doesn't naturally implement Serializable?
 If it is a built-in class, there is probably a good reason it is not
Serializable. For example Images contain platform specific
information, so you cannot save Images on one platform and
reconstitute them on another.

You can mark references transient, and restore them on your own
somehow.
 
You can look for some third party solution, or save them in some other
format, e.g. images as PNG files.

-- 
Roedy Green Canadian Mind Products http://mindprod.com
There are four possible ways to poke a card into a slot.
Nearly always, only one way works. To me that betrays a 
Fascist mentality, demanding customers conform to some 
arbitrary rule, and hassling them to discover the magic 
orientation. The polite way to do it is to design the reader 
slot so that all four ways work, or so that all the customer 
has to do is put the card in the vicinity of the reader. 

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


Thread

serialize spoilers bob smith <bob@coolfone.comze.com> - 2012-10-24 14:05 -0700
  Re: serialize spoilers Roedy Green <see_website@mindprod.com.invalid> - 2012-10-25 04:30 -0700
  Re: serialize spoilers Arne Vajhøj <arne@vajhoej.dk> - 2012-10-25 08:17 -0400
  Re: serialize spoilers Lew <lewbloch@gmail.com> - 2012-10-25 11:18 -0700
  Re: serialize spoilers Sebastian <sebastian@undisclosed.invalid> - 2012-10-27 15:30 +0200

csiph-web