Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Farakh khan
Ranch Hand
Posts: 833
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Ulf Dittmer.

I did coded as follow and it worked fine:


Thanks again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic