mime-util is a simple to use, small, light weight and fast open source java utility library that can detect the mime types of files and streams. Due to the use of regular expressions and the java.nio packages it requires at least Java 1.4.
mime-util uses file extension mappings and the magic.mime rules files located on your system as used by the Unix file(1) command. For OS's that do not support the Unix file(1) command, such as Windows, the library comes pre-packaged with a generic magic.mime file.
With this release we have improved the performance of the mime mapping algorithm and added the ability to highly customise the rules for mapping the mime types as well as added support for detecting the mime types of java streams.
We have greatly improved the documentation and added a significant amount of javadoc to the source code. The project sources, documentation and jar files can be downloaded directly from the project web site at http://sourceforge.net/projects/mime-util/. The latest sources and unit tests are always available from the projects SVN repository if you need them.
Log in to post a comment.