On Tue, 2 Jul 2013, George Wen wrote:
I am trying to use tika detectors to detect file mime types in my project. Since I need to handle some rare mime types, the abilities and easiness to add custom mime types are important to me. Is it possible to let tika use an external tika-mimetypes.xml so that I don't need to recompile tika-app.jar every time a mime type is added?

Can you not just make use of a custom-mimetypes.xml file? See http://tika.apache.org/1.0/parser_guide.html#Add_your_MIME-Type

To run with it, you'd need to something like
  java -classpath /path/to/root/of/custom/mimetypes:/path/to/tika-app.jar
    org.apache.tika.cli.TikaCLI --list-supported-types

When that shows your custom mimetypes, you're good to go!

Nick

Reply via email to