lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tirupathi reddy <tirupathiredd...@yahoo.com>
Subject Problem in .txt file indexing
Date Mon, 26 Sep 2005 17:49:47 GMT
hello,
 
  I am using the following code to index text files.
 
InputStream is = new FileInputStream(pdf);
        
     DefaultStyledDocument styledDoc = new DefaultStyledDocument();
     try {
       new RTFEditorKit().read(is, styledDoc, 0);
       bodyText = styledDoc.getText(0, styledDoc.getLength());
     }
     catch (IOException e) {
       throw new DocumentHandlerException(
         "Cannot extract text from a RTF document", e);
     }
     catch (BadLocationException e) {
       throw new DocumentHandlerException(
         "Cannot extract text from a RTF document", e);
     }
     if (bodyText != null) {
       mDocument.add(Field.Text("fulltext", bodyText));
     }
 
But I am getting the error as can't find symbol  DocumentHandlerException .
 
And I import org.ujac.print.DocumentHandlerException.
 
But I don't have that package. From where I can get that package?
Or else How to solve the above problem?
 


Tirupati Reddy Manyam 
24-06-08, 
Sundugaullee-24, 
79110 Freiburg 
GERMANY. 

Phone: 00497618811257 
cell : 004917624649007

		
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message