JBoss.orgCommunity Documentation
The ApertureMimeTypeDetector class is an implementation of MimeTypeDetector that uses the
Aperture open-source library, which
is a very capable utility for determining the MIME type for a wide range of file types,
using both the file name and the actual content.
To use, simply include the dna-mime-type-detector-aperture.jar file on the classpath
and create a new ExecutionContext subcontext with it:
MimeTypeDetector myDetector = new ApertureMimeTypeDetector();
ExecutionContext contextWithMyDetector = context.with(myDetector);