mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8223178: Improve FileSystems.newFileSystem example with map factory methods
Reviewed-by: alanb, clanger, bpb
This commit is contained in:
parent
03a9d5ad60
commit
53a0327f22
1 changed files with 2 additions and 4 deletions
|
@ -252,10 +252,8 @@ public final class FileSystems {
|
|||
* Suppose there is a provider identified by the scheme {@code "memory"}
|
||||
* installed:
|
||||
* <pre>
|
||||
* Map<String,String> env = new HashMap<>();
|
||||
* env.put("capacity", "16G");
|
||||
* env.put("blockSize", "4k");
|
||||
* FileSystem fs = FileSystems.newFileSystem(URI.create("memory:///?name=logfs"), env);
|
||||
* FileSystem fs = FileSystems.newFileSystem(URI.create("memory:///?name=logfs"),
|
||||
* Map.of("capacity", "16G", "blockSize", "4k"));
|
||||
* </pre>
|
||||
*
|
||||
* @param uri
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue