I want to be able to detect mime types for .one, .onetoc, .onetoc2 files using apache tika. However from their documentation https://tika.apache.org/1.14/formats.html does not seem to have support for it. Using purely file parsing techniques using Tika I always get application/octet-stream instead of application/onenote.
They do support based extension and name based introspection to determine the mime type but that is unreliable as I can always name a file *.one and it would throw mime type as 'application/onenote' which is incorrect.
Any pointers on any library available that can easily detect if a given file is of onenote type or is there something I am missing in Tika?