lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PA <petite.abei...@gmail.com>
Subject Re: RTF text extractor ?
Date Tue, 19 Apr 2005 12:41:34 GMT

On Apr 19, 2005, at 13:37, Eric Chow wrote:

> Is there any RTF text extractor for Lucene ?

import javax.swing.text.Document;
import javax.swing.text.rtf.RTFEditorKit;

RTFEditorKit    aKit = new RTFEditorKit();
Document        aDocument = aKit.createDefaultDocument();

aKit.read( anInputStream, aDocument, 0 );

return aDocument.getText( 0, aDocument.getLength() );

http://dev.alt.textdrive.com/file/ZOE/Bundles/RTFTextDecoder/ 
RTFTextDecoder.java

Cheers

--
PA, Onnay Equitursay
http://alt.textdrive.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message