Re: [OpenMap Users] Layers and Serialization

From: Don Dietrick <>
Date: Sat, 9 Jul 2005 08:30:25 -0400

I think Darol's on the right track - the Layer's I18n member variable
should be marked transient, and the Layer's readObject(...) method
overridden to call back to Environment.getI18n() when the Layer is
read from an ObjectInputStream.

The BasicI18n class probably should be marked as Serializable for
convenience, but serializing it within a component doesn't feel right
for some reason. Maybe it's because it contains a Locale.

- Don

On Jul 9, 2005, at 1:09 AM, CBSpatial wrote:

> Serializable interface has no methods as far as i know.what he
> needs to do is just BasicI18n implements Serializable and this is
> need to define any method.
> ----- Original Message -----
> From: Klawetter, DG Darol (6274) _at_ IS
> To: 'Lepkowski, Thomas M., CTR, OSD-PA&E' ; ''
> Sent: Friday, July 08, 2005 8:35 PM
> Subject: RE: [OpenMap Users] Layers and Serialization
> It would appear that there are objects in this class that aren't
> serializable. The exeception error should tell you which class
> caused the error. You can derive your own class from the BasicI18n
> class and add readObject and writeObject (part of the Serializable
> interface) member functions to it and add your own code to these
> functions to serialize the class members.
> -----Original Message-----
> From: [mailto:owner-openmap-
>]On Behalf Of Lepkowski, Thomas M., CTR, OSD-PA&E
> Sent: Friday, July 08, 2005 11:40 AM
> To: ''
> Subject: [OpenMap Users] Layers and Serialization
> Classification: UNCLASSIFIED
> Hello,
> Anybody out there have experience writing a Layer object out to
> disk? So far in our experiments we're getting
> com.bbn.openmap.BasicI18n
> Any thoughts on what to do about the com.bbn.openmap.BasicI18n class?
> Thanks in advance
> -Tom

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Sat Jul 09 2005 - 08:31:22 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT