RFR 8218875: Add new FileSystems.newFileSystem methods

Alan Bateman Alan.Bateman at oracle.com
Wed Feb 20 10:53:14 UTC 2019

On 20/02/2019 10:23, Langer, Christoph wrote:
> It’s really too bad that there is this method with signature 
> newFileSystem​(Path path, ClassLoader loader) when it rather should 
> have been newFileSystem​(Path path, Map<String,​?> env, ClassLoader 
> loader) to mirror the API using the URI.
Just on this point, the 2-arg method is useful to open a file as a file 
system without knowing anything about its format. To use the 3-arg 
version with anything other than an empty Map means having configuration 
about the file system. There is room for both usages.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190220/362acfb2/attachment.html>

More information about the nio-dev mailing list