Article View: borland.public.jbuilder.java.language
Article #17280Look at serialization?
From: Matt Butler
Date: Tue, 24 Nov 1998 00:00
Date: Tue, 24 Nov 1998 00:00
19 lines
1224 bytes
1224 bytes
This looks to be sort of how serialization works..uses reflection to determine what to write. Perhaps you could look at this for examples, or, if you don't absolutely need a formatted text file of some sort, just serialize the objects? Matt Oyvind Johansen wrote in message <73c7gm$6uu7@forums.borland.com>... >I am storing my objects as persistent objects but I also want to write them >to text files as Strings. In order to create this toString() method for each >object I was thinking about using reflection, having each object look into >it's own parameters and write the parameter values to Strings. Has anybody >done anything similar to this? Any examples? Book references? Web pages? > >Thanks >Oyvind > >
Technical Details
Message-ID:
<73fdeh$9gg22@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<73c7gm$6uu7@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,95bf9c0841eebc79 X-Google-Attributes: gidf74b3,public From: "Matt Butler" <butler@cyberramp.net> Subject: Look at serialization? Date: 1998/11/24 Message-ID: <73fdeh$9gg22@forums.borland.com> X-Deja-AN: 415323278 References: <73c7gm$6uu7@forums.borland.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language