On Fri, 6 Jul 2012, Kevin Milburn wrote:
It appears my main mistake is trying to use Tika or TikaConfig, like all
every example I've found has done, which appears to be completely
incompatible with using Tika in an OSGI environment! :(
e.g. the following produces no output, despite the file containing text.
Tika tika = new Tika();
System.out.print(tika.parseToString(new FileInputStream(xmlFile)));
Once you work out the appropriate incantation, any chance you could write
something up for the Tika wiki about it? <http://wiki.apache.org/tika/>
(As you may have gathered, there aren't a lot of people using Tika with
OSGi yet, so the trail you blaze can hopefully help others later!)
Cheers
Nick