Re: JDK 9 RFR of 8146041: java.net.URLConnection.guessContentTypeFromStream() does not recognize TIFF streams

2015-12-23 Thread Brian Burkhalter
Thanks, Roger. It is supposed to detect the first 4 bytes according to this specification: https://en.wikipedia.org/wiki/Tagged_Image_File_Format#Byte_order Brian On Dec 23, 2015, at 12:48 PM, Roger Riggs wrote: > Without any particular domain knowledge, this looks fine.

Re: JDK 9 RFR of 8146041: java.net.URLConnection.guessContentTypeFromStream() does not recognize TIFF streams

2015-12-23 Thread Roger Riggs
Hi Brian, Without any particular domain knowledge, this looks fine. Roger On 12/23/2015 2:54 PM, Brian Burkhalter wrote: Please review at your convenience. Issue: https://bugs.openjdk.java.net/browse/JDK-8146041 Patch: http://cr.openjdk.java.net/~bpb/8146041/webrev.00/ Summary: Add recogn

JDK 9 RFR of 8146041: java.net.URLConnection.guessContentTypeFromStream() does not recognize TIFF streams

2015-12-23 Thread Brian Burkhalter
Please review at your convenience. Issue: https://bugs.openjdk.java.net/browse/JDK-8146041 Patch: http://cr.openjdk.java.net/~bpb/8146041/webrev.00/ Summary: Add recognition of TIFF header to guessContentTypeFromStream() and a test to verify that it works. Note that this change will not be in