Review Request: JDK-7142921,(fs) Files.probeContentType reports a MIME type of "text/plain" on Ubuntu 11.04
Alan Bateman
Alan.Bateman at oracle.com
Tue Nov 27 11:31:08 PST 2012
On 27/11/2012 16:08, Zhong Yu wrote:
> :
> Yes, but the constructor calls the default constructor first, loading
> other mime.types files
>
In any case, if you have your own mime.types file then just create a
FileTypeDetector for it, package it as a service provider as per the
javadoc, and Files.probeContentType will use it.
-Alan
More information about the nio-dev
mailing list