You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Dmitry Kochelaev <dk...@gmail.com> on 2011/08/23 10:30:57 UTC
Check document type
Dear,
How can I check what kind of document is stored in OPCPackage? In my case it
can be either DOCX or XLSX.
--
Best Regards,
Dmitry Kochelaev
Re: Check document type
Posted by Nick Burch <ni...@alfresco.com>.
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
Nick
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@poi.apache.org
For additional commands, e-mail: user-help@poi.apache.org