poi-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: Check document type
Date Tue, 23 Aug 2011 09:20:10 GMT
On Tue, 23 Aug 2011, Dmitry Kochelaev wrote:
> How can I check what kind of document is stored in OPCPackage? In my 
> case it can be either DOCX or XLSX.

Have a look at the logic in ExtractorFactory:
    public static POIXMLTextExtractor createExtractor(OPCPackage pkg)

That'll show you how you can check the types against the constants to see 
the type


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

View raw message