ExtractorFactory doubt (or problem)

So... I'm making some tests with POI to learn bit more about it and I
stumbled upon a problem I can't seem to figure out.
I've created a simple document reader based on the sample within the Apache
POI website.

But when I get to

POITextExtractor[] embeddedExtractors
=ExtractorFactory.getEmbededDocsTextExtractors(oleTextExtractor);

embeddedExtractos end up empty if I use an Excel file and I recive the
following error if I use a doc file

Exception in thread "main" java.lang.IllegalArgumentException: No supported
documents found in the OLE2 stream
 at
org.apache.poi.extractor.ExtractorFactory.createExtractor(ExtractorFactory.java:238)
at
org.apache.poi.extractor.ExtractorFactory.getEmbededDocsTextExtractors(ExtractorFactory.java:309)
 at test.PoiReadExcelFile.main(PoiReadExcelFile.java:30)

Have I missed something? Or didn't I understood what ExtractorFactory
actually does?

Thanks,

Pedro Dalcin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to