Hi,
I have a problem with the WordExtractor !!!
Everytime i try it i become this :
org.apache.poi.hpsf.PropertySet cannot be cast to
org.apache.poi.hpsf.DocumentSummaryInformation
**************
here is my java code :
**************
public class WORD2TEXT {
WordExtractor _extractor ;
POIFSFileSystem _filesystem;
HWPFDocument _worddoc;
HWPFFileSystem _hwfilesystem;
public WORD2TEXT(){
}
public WORD2TEXT(String s){
}
public WORD2TEXT(FileInputStream in)throws IOException{
_filesystem = new POIFSFileSystem(in);
_worddoc = new HWPFDocument(_filesystem);
_extractor = new WordExtractor(_filesystem);
}
public String getText(){
String str = this.getText();
return str;
}
public static void main(String args[])throws IOException
{
WORD2TEXT w2t = new WORD2TEXT(new FileInputStream(args[0]));
w2t.getText();
}
}
***********
Please help me as soon as possible !!
Thanks.
Omar.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]