URLConnection.guessContentTypeFromStream() does not support UTF8 and UTF32 with BOM
Alan.Bateman at oracle.com
Fri Mar 4 03:13:35 PST 2011
Charles Lee wrote:
> Hi Alan,
> Sorry for the late reply. This test case comes from a big test case,
> which test more types of stream.
A test for this method should pass if "null" is returned as the method
does not specify the content types that it recognizes. I think it's okay
to extend it as you are proposing but I don't think anyone can really
rely on it. I'm happy to create an request-for-feature (RFE) in the bug
database for this and help you get it in if you want to pursue it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the net-dev