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: [email protected]
For additional commands, e-mail: [email protected]