High performance mime type detection
I need a java framework that provides high performance mime type detection. All the frameworks I used so far (JMimeMagic, MimeUtil) were not even close to fast enough. I have to analyze hundreds of files, some of which containing several thousands of lines (source code) some of those files took like >5mins for analyzing.
therefore i could use a library that only analyzes the first few lines and not the entire file. Also it would be enough for me to know if the file was binary or not.
does anyone have a recommendation? or some hints for an own mime type detection framework?
thanks in advance