We are pleased to announce the 2.1 release of mime-util.
With this release we have added a new WindowsRegistryMimeDetector that interfaces with the windows registry to look up the "Content Type" for file extensions.
We have also released a new MimeUtil2 class that can be used in threaded applications or where you need different detection policies in different parts of your application.
The getMimeTypes(URL url) methods can now detect MIME types directly from entries withing JAR and ZIP files. The ZipJarUtil class has som convenience overloaded methods for listing the entries from within JAR and ZIP files.... read more
We are pleased to announce the release 2.0 of mime-util which is a major release from the 1.x branch.
mime-util is a small, fast, lightweight mime detection utility for java. It can be used standalone or within an application server as part of a JEE application. It is able to detect mime types from java File objects, InputStream's, URLConnection's, byte arrays and strings representing file names. Each of the MimeUtil.getMimeTypes(...) methods returns a Collection of one or more matching mime types.... read more
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.... read more