Article View: borland.public.jbuilder.java.language
Article #7474Re: read component from a file
From: Greg Hamer
Date: Wed, 20 Jun 2001 21:52
Date: Wed, 20 Jun 2001 21:52
28 lines
1931 bytes
1931 bytes
In java it is called serialization. Classes that wish to implement the
tagging interface java.io.Serializable.
java.io.ObjectOutputStream.writeObject() will serialize an instance and
java.io.ObjectInputStream.readObject() will
deserialize an object.
A serialized file with a file extension of ".ser" can be instantaited using
java.beans.Beans.instantiate("your.package.filename");
where the file is named filename.ser and it is in directory your/package
somewhere on the classpath.
The designer has a context menu item in the component tree that will
serialize objects to a file.
"Mirko b" <macstrna@tiscalinet.it> wrote in message news:3b30c92f_2@dnews...
> I'm new to Jbuilder.
> Is there any function that returns an instance of a component that was
read
> from a resource file (component streaming)?
> In Delphi I have 'ReadComponentResFile' to create a component and its
> children from their representation in a Windows resource file (for example
a
> .dfm file).
> Anything like this in jbuilder?
>
> thank you in advance
> Mirko
>
>
>
Technical Details
Message-ID:
<3b311b3c$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3b30c92f_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,77d2dfc41221bc01 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-06-20 15:13:28 PST From: "Greg Hamer" <ghamer@troikanetworks.com> Newsgroups: borland.public.jbuilder.java.language References: <3b30c92f_2@dnews> Subject: Re: read component from a file Date: Wed, 20 Jun 2001 14:52:35 -0700 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 NNTP-Posting-Host: 12.31.172.193 Message-ID: <3b311b3c$1_2@dnews> X-Trace: dnews 993073980 12.31.172.193 (20 Jun 2001 14:53:00 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews