gzz-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz] Serializing enfilades


From: b . fallenstein
Subject: [Gzz] Serializing enfilades
Date: Fri, 26 Jul 2002 13:51:01 +0200 (MEST)

Hi,

Enfilade1Ds implement java.io.Serializable, and thus it should be possible
to save them through Java serialization. Anybody noticed this is not the case?
Reason is that they contain Span objects. First thing is that Spans do not
implement Serializable-- dunno whether Java will complain about this; second
and more important thing is that we need to save the scrollblocks before we
can serialize spans.

I have no idea how this should work. I'm inclined to think it might be
better to have a save() method in Enfilade1D that would save the scrollblocks 
and
return a serializable representation of the enfilade (would have to have a
corresponding load() in Enfilade1D.Maker).

Saving the scrollblocks should be an explicit action, IMHO-- serializing a
serializable object IMO doesn't qualify for that (I'd expect it not to modify
any system state).

So what do we do?

- Benja




reply via email to

[Prev in Thread] Current Thread [Next in Thread]