Review Request: JDK-7142921,(fs) Files.probeContentType reports a MIME type of "text/plain" on Ubuntu 11.04
Dan Xu
dan.xu at oracle.com
Sun Nov 25 22:40:02 PST 2012
Hi,
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.
Thanks,
-Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20121125/a9cff863/attachment.html
More information about the nio-dev
mailing list