aspose 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
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: 41904
    
  63
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RTFEditorKit() is not reading linked formatted email address in file