On Fri, 5 Feb 2016, Steven White wrote:
How do I detect if a file type is supported or not?
Run the detection only. If you get anything other than application/octet-stream back, Tika was able to detect it
Also, how do I detect if a file type is supported but it cannot be processed because the parser for it is missing (the required JARs are missing)?
Ask Tika what mime types it has parsers for. If it isn't one of those, no parser exists.
See the troubleshooting guide for ways to do that from code, the webapp, the app etc
For the missing JAR part
Set your Load Error Handler to Warn or Error to find out about parsers with missing classes or dependencies
Nick
