< prev index next >
src/java.base/share/classes/java/nio/channels/FileChannel.java
Print this page
*** 328,338 ****
* @since 1.7
*/
public static FileChannel open(Path path, OpenOption... options)
throws IOException
{
! Set<OpenOption> set = new HashSet<OpenOption>(options.length);
Collections.addAll(set, options);
return open(path, set, NO_ATTRIBUTES);
}
// -- Channel operations --
--- 328,338 ----
* @since 1.7
*/
public static FileChannel open(Path path, OpenOption... options)
throws IOException
{
! Set<OpenOption> set = new HashSet<>(options.length);
Collections.addAll(set, options);
return open(path, set, NO_ATTRIBUTES);
}
// -- Channel operations --
< prev index next >