🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #891

Re: On java.io.NotSerializableException: java.lang.Object

#891
From: Worm Online
Date: Wed, 24 Jul 2002 15:40
48 lines
2993 bytes
   Thank you very much.

   You know, javax.swing.text.rtf.RTFEditorKit can save or read rtf file,
but there is a bug that the graph in the RTF file can not be saved or read
correctly.
   By now, it seems that trying to deal with RTF file by using Java is
impossible and the only way for me is to wait.

   Thank you again.


"John McGrath [TeamB]" <ng-b@JPMcGrath.net> д����Ϣ����
:MPG.17a7d3a16497b8798b8a3@newsgroups.borland.com...
> On Tue, 23 Jul 2002 16:08:40 +0800, Worm Online wrote:
>
> > I have try to out put the RTF document by using the following code:
> >
> >     XMLEncoder xmle = new XMLEncoder(
>
> You are using an XMLEncoder to save an RTF Document?  While it may be
> possible to get that to work (although I am not sure that it is), that
> is definitely not the right approach.  Even if it does work, what would
> be written could not be read by other applications that know how to
> handle RTF.  The file would have an XML representation of the internal
> structures used by the Java Document class.
>
> The Swing text classes have facilities to write documents to files.
> This functionality is included in the EditorKit class.  For RTF
> documents, you will want to use javax.swing.text.rtf.RTFEditorKit.
>
> For more information on how to use the Swing text classes, take a look
> at "The Java Tutorial" at:
>
>    http://java.sun.com/docs/books/tutorial/.
>
> I have heard that the book "Core Swing: Advanced Programming" by Kim
> Topley covers the Swing text classes in detail:
>
>    http://www.amazon.com/exec/obidos/ASIN/0130832928/
>
> --
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
>     http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <3d3ec8b4_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newsfeed.esat.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3d2941ad_1@dnews> <MPG.17937befbecfabdc98b7fe@newsgroups.borland.com> <3d2ab537$1_1@dnews> <MPG.1797d02b68cb68e498b820@newsgroups.borland.com> <3d3d0e9b_2@dnews> <MPG.17a7d3a16497b8798b8a3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,37aa6d68d3c616d
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-07-24 08:54:07 PST
From: "Worm Online" <worm_online@ubsys.net>
Newsgroups: borland.public.jbuilder.java.api
References: <3d2941ad_1@dnews> <MPG.17937befbecfabdc98b7fe@newsgroups.borland.com> <3d2ab537$1_1@dnews> <MPG.1797d02b68cb68e498b820@newsgroups.borland.com> <3d3d0e9b_2@dnews> <MPG.17a7d3a16497b8798b8a3@newsgroups.borland.com>
Subject: Re: On java.io.NotSerializableException: java.lang.Object
Date: Wed, 24 Jul 2002 23:40:34 +0800
Lines: 50
Organization: UBsys
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 218.2.185.10
Message-ID: <3d3ec8b4_2@dnews>
X-Trace: dnews 1027524788 218.2.185.10 (24 Jul 2002 08:33:08 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!newsfeed.esat.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!dnews