Review Request: JDK-7142921,(fs) Files.probeContentType reports a MIME type of "text/plain" on Ubuntu 11.04
dan.xu at oracle.com
Sun Nov 25 22:40:02 PST 2012
Please help review the code changes for CR 7142921 and CR 7144997. The
webrev is uploaded to, http://cr.openjdk.java.net/~dxu/7142921/webrev.00/.
In the fix, I added two new file type detectors, one is
MimeTypesFileTypeDetector, and the other is
MagicFileTypeDetector.MimeTypesFileTypeDetector is using a file name
extension to look up its MIME type by checking mime.types files, which
can be used in Linux, Solaris, and Mac.MagicFileTypeDetector is using
libmagic to detect a file type in Linux. The library, libmagic, is
provided in the same package of file command, which is currently only
available in Linux platform.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nio-dev