RFR 8144355: JDK 9 changes to ZipFileSystem to support multi-release jar files
Xueming Shen
xueming.shen at oracle.com
Mon Dec 14 20:07:24 UTC 2015
On 12/14/2015 11:50 AM, Steve Drach wrote:
>
>
>> (2) For JarFileSystem.isMultiReleaseJar(), the alternative is to use the public api directly
>>
>> try (InputStream is = getInputStream(getBytes("META-INF/MANIFEST.MF"))) {
>
> I can’t seem to find a getInputStream(byte[]). I only see a getInputStream(Entry). Are we looking at the same code?
>
My apology. I meant "newInputStream(byte[])"
-sherman
>> new Manifest(is).getMainAttributes().containsKey(new Attributes.Name("Multi-Release"));
>> } catch (Exception x) {}
>> return false;
>>
>> In this approach, the getInputStream(Entry) can be put back to "private" as well.
>> But this is just a personal preference, your choice:-)
>>
>> The rest looks fine for me
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20151214/a98f4e21/attachment-0001.html>
More information about the nio-dev
mailing list