[Biojava-dev] RE: [Biojava-l] Serialization involving NameTokenization

Schreiber, Mark mark.schreiber@agresearch.co.nz
Tue, 15 Oct 2002 14:27:30 +1300


Hi -

I have made WordTokenization and CharTokenization serializable
(NameTokenization extends WordTok so doesn't need explicit labelling).

AbstractAlphabet is already serializable (with a sensible readResolve()
method) so all inhereting classes will be too.

Please note that only biojava-live should be considered compatable with
binary serialization at this stage. We have resolved several issues but
there are probably still a few lurking out there.

- Mark


> -----Original Message-----
> From: Matthew Pocock [mailto:matthew_pocock@yahoo.co.uk] 
> Sent: Monday, 14 October 2002 5:20 a.m.
> To: Schreiber, Mark
> Cc: Lachlan Coin; biojava-l@biojava.org
> Subject: Re: [Biojava-l] Serialization involving NameTokenization
> 
> 
> Schreiber, Mark wrote:
> > Hi -
> > 
> > Does anyone know of any reason why NameTokenization cannot be 
> > serialized? Possibly it just needs to be marked as Serializable (or 
> > maybe as transient in Alphabet). I'm not at my normal 
> computer right 
> > know but I'll have a look at the source when I get home and 
> make the 
> > needed changes to the BioJava live branch.
> > 
> > - Mark
> 
> I don't see why tokenizations shouldn't be serializable. We should 
> pobably add serializable to the implemetations, not the 
> interface to fit 
> with the way other things are serializad. Objections?
> 
> Matthew
> 
> > 
> > 
> > 
> >>-----Original Message-----
> >>From: Lachlan Coin [mailto:lc1@sanger.ac.uk]
> >>Sent: Friday, 11 October 2002 1:48 a.m.
> >>To: biojava-l@biojava.org
> >>Subject: [Biojava-l] Serialization involving NameTokenization
> >>
> >>
> >>Hi,
> >>
> >>I'm trying to serialize something which contains an alphabet
> >>and hence a NameTokenization.  However, NameTokenization is 
> >>not serializable.  Any ideas how to get around this?
> >>
> >>Thanks very much,
> >>
> >>Lachlan
> >>
> >>_______________________________________________
> >>Biojava-l mailing list  -  Biojava-l@biojava.org
> >>http://biojava.org/mailman/listinfo/biojava-l
> >>
> > 
> > 
> ======================================================================
> > =
> > Attention: The information contained in this message and/or 
> attachments
> > from AgResearch Limited is intended only for the persons or entities
> > to which it is addressed and may contain confidential 
> and/or privileged
> > material. Any review, retransmission, dissemination or 
> other use of, or
> > taking of any action in reliance upon, this information by 
> persons or
> > entities other than the intended recipients is prohibited 
> by AgResearch
> > Limited. If you have received this message in error, please 
> notify the
> > sender immediately.
> > 
> ==============================================================
> =========
> > _______________________________________________
> > Biojava-l mailing list  -  Biojava-l@biojava.org
> > http://biojava.org/mailman/listinfo/biojava-l
> > 
> 
> 
> -- 
> BioJava Consulting LTD - Support and training for BioJava 
> http://www.biojava.co.uk
> 
> 
> __________________________________________________
> 
> Do You Yahoo!?
> 
> Everything you'll ever need on one web page
> 
> from News and Sport to Email and Music Charts
> 
http://uk.my.yahoo.com

=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================