Jukka Zitting schrieb:
Hi,

At first I used static methods in the Tika facade class, but then I
switched to normal instance methods to make it easier to use custom
Tika configuration. However, now I'm thinking that the original design
was probably better.

Any opinions on this? Essentially, which one of the following do you
like better:

    a) new Tika().parse(...);

    b) Tika.parse(...);

I assume you are refering to Tika 0.5

http://lucene.apache.org/tika/apidocs/org/apache/tika/Tika.html

right? Because so far I have only experience with TikConfig.getParser().parse(...)
The benefit of a) over b) is that you can say: new
Tika(config).parse(...), but most of the people who need custom
configuration will probably in any case be going beyond the Tika
facade.

you mean using TikaConfig.getParser().parse(...)

?

Thanks

Michael
BR,

Jukka Zitting

Reply via email to