File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes RTFEditorKit() is not reading linked formatted email address in file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "RTFEditorKit() is not reading linked formatted email address in file" Watch "RTFEditorKit() is not reading linked formatted email address in file" New topic
Author

RTFEditorKit() is not reading linked formatted email address in file

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Hello,

I am trying to read rtf doc and then to find emails. The following code is reading rtf file but not reading email addresses that are presented as email link in the rtf. Please advise


Thanks in anticipation
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41599
    
  55
RTFEditorKit is buggy and quite limited in what it can do. I advise to not use it for any production purposes.

RTF is just text, though - consider using a Reader and searching via regular expressions.


Ping & DNS - my free Android networking tools app
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 732
Thank you very much Ulf Dittmer.

I did coded as follow and it worked fine:


Thanks again
 
Don't get me started about those stupid light bulbs.
 
subject: RTFEditorKit() is not reading linked formatted email address in file