diff -r 14c1ff687621 src/jdk.zipfs/share/classes/module-info.java
--- a/src/jdk.zipfs/share/classes/module-info.java Sat Sep 21 10:13:25 2019 -0400
+++ b/src/jdk.zipfs/share/classes/module-info.java Mon Sep 23 13:22:19 2019 -0400
@@ -147,7 +147,7 @@
*
*
* create |
- * java.lang.String |
+ * {@link java.lang.String} or {@link java.lang.Boolean} |
* false |
*
* If the value is {@code true}, the Zip file system provider
@@ -156,7 +156,7 @@
* |
*
* encoding |
- * java.lang.String |
+ * {@link java.lang.String} |
* UTF-8 |
*
* The value indicates the encoding scheme for the
@@ -164,8 +164,8 @@
* |
*
*
- * enablePosixFileAttributes |
- * java.lang.String |
+ * enablePosixFileAttributes |
+ * {@link java.lang.String} or {@link java.lang.Boolean} |
* false |
*
* If the value is {@code true}, the Zip file system will support
@@ -173,8 +173,9 @@
* |
*
*
- * defaultOwner |
- * {@link java.nio.file.attribute.UserPrincipal UserPrincipal} or java.lang.String |
+ * defaultOwner |
+ * {@link java.nio.file.attribute.UserPrincipal UserPrincipal} or
+ * {@link java.lang.String} |
* null/unset |
*
* Override the default owner for entries in the Zip file system.
@@ -182,8 +183,9 @@
* |
*
*
- * defaultGroup |
- * {@link java.nio.file.attribute.GroupPrincipal GroupPrincipal} or java.lang.String |
+ * defaultGroup |
+ * {@link java.nio.file.attribute.GroupPrincipal GroupPrincipal} or
+ * {@link java.lang.String} |
* null/unset |
*
* Override the the default group for entries in the Zip file system.
@@ -191,9 +193,9 @@
* |
*
*
- * defaultPermissions |
+ * defaultPermissions |
* {@link java.util.Set Set}<{@link java.nio.file.attribute.PosixFilePermission PosixFilePermission}>
- * or java.lang.String |
+ * or {@link java.lang.String}
* null/unset |
*
* Override the default Set of permissions for entries in the Zip file system.
@@ -201,7 +203,69 @@
* a String that is parsed by {@link java.nio.file.attribute.PosixFilePermissions#fromString PosixFilePermissions::fromString}
* |
*
- *
+ *
+ * compressionMethod |
+ * {@link java.lang.String} |
+ * DEFLATED |
+ *
+ * The value representing the compression method to use when adding entries
+ * to the Zip file system.
+ *
+ * -
+ * If the value is {@code STORED}, the Zip file system provider will
+ * not compress entries when writing to the Zip file system.
+ *
+ * -
+ * If the value is {@code DEFLATED} or the property is not set,
+ * the Zip file system provider will use data compression when
+ * writing entries to the Zip file system.
+ *
+ * -
+ * If the value is not {@code STORED} or {@code DEFLATED}, an
+ * {@code IllegalArgumentException} will be thrown.
+ *
+ *
+ * |
+ *
+ *
+ * releaseVersion |
+ * {@link java.lang.String} or {@link java.lang.Integer} or
+ * {@link java.lang.Runtime.Version} |
+ * null/unset |
+ *
+ * A value representing the version entry to use when accessing a
+ * multi-release JAR. If the JAR is not a multi-release JAR, the value
+ * will be ignored and the JAR will considered un-versioned.
+ *
+ *
+ *
+ *
+ * -
+ * If the value is {@code null} or the property is not set,
+ * then the JAR will be treated as an un-versioned JAR.
+ *
+ * -
+ * If the value is {@code "runtime"} or is a
+ * {@linkplain java.lang.Runtime.Version Version} Object, the
+ * version entry will be determined by invoking
+ * {@linkplain Runtime.Version#feature() Version.feature()}.
+ *
+ * -
+ * If the Object is a {@linkplain java.lang.String} or an
+ * {@linkplain java.lang.Integer}, its value must represent a valid
+ * {@linkplain Runtime.Version Java SE Platform version number},
+ * such as {@code 9}, {@code 11.0.1}, or {@code 14} in order to
+ * determine the version entry.
+ *
+ * -
+ * If the value does not represent a valid
+ * {@linkplain Runtime.Version Java SE Platform version number},
+ * an {@code IllegalArgumentException} will be thrown.
+ *
+ *
+ * |
+ *
+ *
*
*
* Examples:
@@ -223,7 +287,7 @@
*
* {@code
*
- * FileSystem zipfs = FileSystems.newFileSystem(Path.of("helloworld.jar"), null);
+ * FileSystem zipfs = FileSystems.newFileSystem(Path.of("helloworld.jar"));
* Path rootDir = zipfs.getPath("/");
* Files.walk(rootDir)
* .forEach(System.out::println);