On Fri, 30 Dec 2011, ola nowak wrote:
I've added my parser to the list but I don't know how to explicity tell
AutoDetectParser to use my parser.
You probably need to do two steps:
* Add a custom mimetypes entry that detects your special XML files as a
suitable (probbaly new) mimetype
* Have your custom parser list that mimetype from its getSupportedTypes
method
A good way to test this is with something like:
java -classpath tika-app-1.0.jar:myparser.jar org.apache.tika.cli.TikaCLI
Use the --list-parsers and --list-parser-details options to check that
your parser is registering for the new mimetype, and use --detect to check
that your custom mimetype entry is being found and used
Nick