First, I saw this question ( Getting A File's Mime Type In Java ), but the selected answer is only a link.
I'm looking for a way to determine the MIME type of a file in Java, and I need a tool that can discover a lot of different types because I'm doing an webcrawler and it handle a lot of different MIMEs.
I used JMimeMagic and appears simple and good, but is beta and there are some crashes. Apache Tika does a lot of things, including MIME detection, but is big. The same occurs for some others libraries.
I want to know if there is some MIME detection specific library (like JMimeMagic, but working) and that can recognizes a lot of MIME types, and not using only file extension. If not, the bigger libraries like Apache Tika are the right choice?